public class VFSSendingEndpoint extends ProviderEndpoint implements VFSEndpointType
definition, description, endpoint, interfaceName, service, serviceUnit| Constructor and Description |
|---|
VFSSendingEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.vfs.FileSystemManager |
getFileSystemManager() |
org.apache.servicemix.components.util.FileMarshaler |
getMarshaler() |
java.lang.String |
getPath() |
protected void |
processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in) |
protected void |
resolvePath()
resolves the given path to a file object
|
void |
setFileSystemManager(org.apache.commons.vfs.FileSystemManager fileSystemManager)
sets the file system manager
|
void |
setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
Specifies a
FileMarshaler object that will marshal file data
into the NMR. |
void |
setPath(java.lang.String path)
Specifies a
String object representing the path of the
file/folder to be polled.Examples: file:///home/lhein/pollFolder zip:file:///home/lhein/pollFolder/myFile.zip jar:http://www.myhost.com/files/Examples.jar jar:../lib/classes.jar!/META-INF/manifest.mf tar:gz:http://anyhost/dir/mytar.tar.gz!/mytar.tar!/path/in/tar/README.txt tgz:file://anyhost/dir/mytar.tgz!/somepath/somefile gz:/my/gz/file.gz http://myusername@somehost/index.html webdav://somehost:8080/dist ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz sftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz smb://somehost/home tmp://dir/somefile.txt res:path/in/classpath/image.png ram:///any/path/to/file.txt mime:file:///your/path/mail/anymail.mime!/filename.pdf For further details have a look at http://commons.apache.org/vfs/filesystems.html. |
activate, deactivate, getRole, process, processInOutdone, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stopgetDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validateprotected void resolvePath()
throws java.lang.Exception
java.lang.Exceptionprotected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage in)
throws java.lang.Exception
processInOnly in class ProviderEndpointjava.lang.Exceptionpublic void setPath(java.lang.String path)
String object representing the path of the
file/folder to be polled.http://commons.apache.org/vfs/filesystems.html.
path - a String object that represents a file/folder/vfspublic java.lang.String getPath()
public void setFileSystemManager(org.apache.commons.vfs.FileSystemManager fileSystemManager)
fileSystemManager - the file system managerpublic org.apache.commons.vfs.FileSystemManager getFileSystemManager()
public void setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
FileMarshaler object that will marshal file data
into the NMR. The default file marshaller can read valid XML data.
FileMarshaler objects are implementations of
org.apache.servicemix.components.util.FileMarshaler.marshaler - a FileMarshaler object that can read data
from the file system.public org.apache.servicemix.components.util.FileMarshaler getMarshaler()
Copyright © 2005-2015 FuseSource. All Rights Reserved.