|
|||||||||
| 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.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, 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()
|
String |
getUniqueFileName()
|
protected String |
getUploadName(String name)
Deprecated. |
String |
getUploadPrefix()
Deprecated. |
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)
|
void |
setClientPool(FTPClientPool clientPool)
|
void |
setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
|
void |
setOverwrite(boolean overwrite)
|
void |
setUniqueFileName(String uniqueFileName)
Sets the name used to make a unique name if no file name is available on the message. |
void |
setUploadPrefix(String uploadPrefix)
Deprecated. |
void |
setUploadSuffix(String uploadSuffix)
Deprecated. |
void |
setUri(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(URI uri)
public boolean isCheckDuplicates()
public void setCheckDuplicates(boolean checkDuplicates)
public void start()
throws Exception
start in interface Endpointstart in class SimpleEndpointExceptionpublic FTPClientPool getClientPool()
public void setClientPool(FTPClientPool clientPool)
public org.apache.servicemix.components.util.FileMarshaler getMarshaler()
public void setMarshaler(org.apache.servicemix.components.util.FileMarshaler marshaler)
public String getUniqueFileName()
public void setUniqueFileName(String uniqueFileName)
uniqueFileName - the new value of the unique name to use for generating unique namespublic boolean isOverwrite()
public void setOverwrite(boolean overwrite)
@Deprecated public String getUploadPrefix()
@Deprecated public void setUploadPrefix(String uploadPrefix)
uploadPrefix - @Deprecated public String getUploadSuffix()
@Deprecated public void setUploadSuffix(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 Exception
processInOnly in class ProviderEndpointException@Deprecated protected String getUploadName(String name)
protected FTPClientPool createClientPool()
throws Exception
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 | ||||||||