|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.commons.vfs.VFSUtils
public class VFSUtils
| Constructor Summary | |
|---|---|
VFSUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
acquireLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
org.apache.commons.vfs2.FileSystemOptions fso)
Acquires a file item lock before processing the item, guaranteing that the file is not processed while it is being uploaded and/or the item is not processed by two listeners |
static boolean |
acquireLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
VFSParamDTO paramDTO,
org.apache.commons.vfs2.FileSystemOptions fso)
Acquires a file item lock before processing the item, guaranteing that the file is not processed while it is being uploaded and/or the item is not processed by two listeners |
static org.apache.commons.vfs2.FileSystemOptions |
attachFileSystemOptions(Map<String,String> options,
org.apache.commons.vfs2.FileSystemManager fsManager)
|
static String |
getFileName(org.apache.axis2.context.MessageContext msgCtx,
VFSOutTransportInfo vfsOutInfo)
|
static String |
getProperty(org.apache.commons.vfs2.FileContent message,
String property)
Get a String property from FileContent message |
static String |
getSystemTime(String dateFormat)
|
static boolean |
isFailRecord(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
|
static void |
markFailRecord(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
|
static String |
maskURLPassword(String url)
Mask the password of the connection url with *** |
static Map<String,String> |
parseSchemeFileOptions(String fileURI,
org.apache.axis2.description.ParameterInclude params)
|
static void |
releaseFail(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
|
static void |
releaseLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
org.apache.commons.vfs2.FileSystemOptions fso)
Release a file item lock acquired either by the VFS listener or a sender |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VFSUtils()
| Method Detail |
|---|
public static String getProperty(org.apache.commons.vfs2.FileContent message,
String property)
message - the File messageproperty - property name
public static String getFileName(org.apache.axis2.context.MessageContext msgCtx,
VFSOutTransportInfo vfsOutInfo)
public static boolean acquireLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
org.apache.commons.vfs2.FileSystemOptions fso)
fsManager - used to resolve the processing filefo - representing the processing file itemfso - represents file system options used when resolving file from file system manager.
public static boolean acquireLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
VFSParamDTO paramDTO,
org.apache.commons.vfs2.FileSystemOptions fso)
fsManager - used to resolve the processing filefo - representing the processing file itemfso - represents file system options used when resolving file from file system manager.
public static void releaseLock(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo,
org.apache.commons.vfs2.FileSystemOptions fso)
fsManager - which is used to resolve the processed filefo - representing the processed filefso - represents file system options used when resolving file from file system manager.public static String maskURLPassword(String url)
url - the actual url
public static String getSystemTime(String dateFormat)
public static void markFailRecord(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
public static boolean isFailRecord(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
public static void releaseFail(org.apache.commons.vfs2.FileSystemManager fsManager,
org.apache.commons.vfs2.FileObject fo)
public static Map<String,String> parseSchemeFileOptions(String fileURI,
org.apache.axis2.description.ParameterInclude params)
public static org.apache.commons.vfs2.FileSystemOptions attachFileSystemOptions(Map<String,String> options,
org.apache.commons.vfs2.FileSystemManager fsManager)
throws org.apache.commons.vfs2.FileSystemException,
InstantiationException,
IllegalAccessException
org.apache.commons.vfs2.FileSystemException
InstantiationException
IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||