|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.ftp.FtpSenderEndpoint
public class FtpSenderEndpoint
An FTP endpoint
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
FtpSenderEndpoint()
|
|
FtpSenderEndpoint(FtpComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
protected org.apache.commons.net.ftp.FTPClient |
borrowClient()
|
protected FTPClientPool |
createClientPool()
|
FTPClientPool |
getClientPool()
|
org.apache.servicemix.components.util.FileMarshaler |
getMarshaler()
|
java.lang.String |
getUniqueFileName()
|
protected java.lang.String |
getUploadName(java.lang.String name)
Deprecated. |
java.lang.String |
getUploadPrefix()
Deprecated. |
java.lang.String |
getUploadSuffix()
Deprecated. |
boolean |
isAutoCreateDirectory()
|
boolean |
isCheckDuplicates()
|
boolean |
isOverwrite()
|
protected void |
processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
|
protected void |
returnClient(org.apache.commons.net.ftp.FTPClient client)
|
void |
setAutoCreateDirectory(boolean autoCreateDirectory)
Specifies if the endpoint should create the target directory, if it does not already exist. |
void |
setCheckDuplicates(boolean checkDuplicates)
Specifies whether duplicates should be checked. |
void |
setClientPool(FTPClientPool clientPool)
Set a custom FTPClientPool. |
void |
setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
Set a custom FileMarshaler implementation to control how the file contents is being translated into a JBI message. |
void |
setOverwrite(boolean overwrite)
Specifies if a file with the same name already exists on the FTP server, the file should be overwritten. |
void |
setUniqueFileName(java.lang.String uniqueFileName)
Sets the name used to make a unique name if no file name is available on the message. |
void |
setUploadPrefix(java.lang.String uploadPrefix)
Deprecated. |
void |
setUploadSuffix(java.lang.String uploadSuffix)
Deprecated. |
void |
setUri(java.net.URI uri)
Configures the endpoint from a URI |
void |
start()
|
void |
validate()
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, process, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, stop |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FtpSenderEndpoint()
public FtpSenderEndpoint(FtpComponent component,
javax.jbi.servicedesc.ServiceEndpoint endpoint)
| Method Detail |
|---|
public void validate()
throws javax.jbi.management.DeploymentException
validate in interface Endpointvalidate in class AbstractEndpointjavax.jbi.management.DeploymentExceptionpublic void setUri(java.net.URI uri)
public boolean isCheckDuplicates()
public void setCheckDuplicates(boolean checkDuplicates)
true.
checkDuplicates - is a boolean specifying whether duplicate should be checked. Default value is true.
.
public void start()
throws java.lang.Exception
start in interface Endpointstart in class SimpleEndpointjava.lang.Exceptionpublic FTPClientPool getClientPool()
public void setClientPool(FTPClientPool clientPool)
clientPool - the clientPool implementation to usepublic org.apache.servicemix.components.util.FileMarshaler getMarshaler()
public void setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
marshaler - the marshaler implementation to usepublic java.lang.String getUniqueFileName()
public void setUniqueFileName(java.lang.String uniqueFileName)
uniqueFileName - the new value of the unique name to use for generating unique namespublic boolean isOverwrite()
public void setOverwrite(boolean overwrite)
false.
overwrite - if a file with the same name already exists on the FTP server, the file should be overwritten.@Deprecated public java.lang.String getUploadPrefix()
@Deprecated public void setUploadPrefix(java.lang.String uploadPrefix)
uploadPrefix - @Deprecated public java.lang.String getUploadSuffix()
@Deprecated public void setUploadSuffix(java.lang.String uploadSuffix)
uploadSuffix - public void setAutoCreateDirectory(boolean autoCreateDirectory)
false and the
directory does not exist, the endpoint will not do anything. Default
value is true.
autoCreateDirectory - a boolean specifying if the endpoint creates
directories.public boolean isAutoCreateDirectory()
protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws java.lang.Exception
processInOnly in class ProviderEndpointjava.lang.Exception@Deprecated protected java.lang.String getUploadName(java.lang.String name)
protected FTPClientPool createClientPool()
throws java.lang.Exception
java.lang.Exception
protected org.apache.commons.net.ftp.FTPClient borrowClient()
throws javax.jbi.JBIException
javax.jbi.JBIExceptionprotected void returnClient(org.apache.commons.net.ftp.FTPClient client)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||