public class TransferUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.axis.components.uuid.UUIDGen |
uuidgen
The UUIDGen
|
Constructor and Description |
---|
TransferUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
applyPostProcess(org.gcube.datatransfer.agent.stubs.datatransferagent.PostProcessType type,
org.apache.commons.vfs2.FileObject file,
org.apache.commons.vfs2.FileObject path,
String conversionType) |
static boolean |
applyPostProcess(org.gcube.datatransfer.agent.stubs.datatransferagent.PostProcessType type,
String file,
String path,
String conversionType) |
static org.apache.commons.vfs2.FileSystemOptions |
createDefaultOptions(String URI) |
static Transfer |
createTransferJDO(String transferId) |
static Transfer |
createTransferJDO(String transferId,
String sourceID,
String destID) |
static TransferObject |
createTransferObjectJDO(String transferId,
org.gcube.datatransfer.agent.stubs.datatransferagent.TransferType type) |
static String |
getMimeType(String fileUrl) |
static long |
getTotalSize(String[] inputURIs) |
static org.apache.commons.vfs2.FileObject |
prepareFileObject(String URI) |
static void |
unzipArchive(String baseFolder,
String archiveFile) |
protected static final org.apache.axis.components.uuid.UUIDGen uuidgen
public static Transfer createTransferJDO(String transferId, String sourceID, String destID)
public static TransferObject createTransferObjectJDO(String transferId, org.gcube.datatransfer.agent.stubs.datatransferagent.TransferType type)
public static void unzipArchive(String baseFolder, String archiveFile) throws Exception
Exception
public static String getMimeType(String fileUrl) throws IOException
IOException
public static org.apache.commons.vfs2.FileSystemOptions createDefaultOptions(String URI) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static org.apache.commons.vfs2.FileObject prepareFileObject(String URI) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public static boolean applyPostProcess(org.gcube.datatransfer.agent.stubs.datatransferagent.PostProcessType type, org.apache.commons.vfs2.FileObject file, org.apache.commons.vfs2.FileObject path, String conversionType) throws Exception
Exception
Copyright © 2015. All Rights Reserved.