public final class Ftp extends Object
| Modifier and Type | Method and Description |
|---|---|
static FtpInboundChannelAdapterSpec |
inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
A
FtpInboundChannelAdapterSpec factory for an inbound channel adapter spec. |
static FtpInboundChannelAdapterSpec |
inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
Comparator<File> receptionOrderComparator)
A
FtpInboundChannelAdapterSpec factory for an inbound channel adapter spec. |
static FtpStreamingInboundChannelAdapterSpec |
inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
A
FtpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec. |
static FtpStreamingInboundChannelAdapterSpec |
inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
Comparator<org.apache.commons.net.ftp.FTPFile> receptionOrderComparator)
A
FtpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate,
FileExistsMode fileExistsMode)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
Deprecated.
in favor of
outboundAdapter(FtpRemoteFileTemplate) |
static FtpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
FileExistsMode fileExistsMode)
Deprecated.
|
static FtpMessageHandlerSpec |
outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
FileExistsMode fileExistsMode)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
static FtpOutboundGatewaySpec |
outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command command,
String expression)
Produce a
FtpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
static FtpOutboundGatewaySpec |
outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
String command,
String expression)
Produce a
FtpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
static FtpOutboundGatewaySpec |
outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
AbstractRemoteFileOutboundGateway.Command command,
String expression)
Produce a
FtpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
static FtpOutboundGatewaySpec |
outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
MessageSessionCallback<org.apache.commons.net.ftp.FTPFile,?> messageSessionCallback)
Produce a
FtpOutboundGatewaySpec based on the
MessageSessionCallback. |
static FtpOutboundGatewaySpec |
outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory,
String command,
String expression)
Produce a
FtpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
public static FtpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
FtpInboundChannelAdapterSpec factory for an inbound channel adapter spec.sessionFactory - the session factory.public static FtpInboundChannelAdapterSpec inboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, Comparator<File> receptionOrderComparator)
FtpInboundChannelAdapterSpec factory for an inbound channel adapter spec.sessionFactory - the session factory.receptionOrderComparator - the comparator.public static FtpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
FtpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec.remoteFileTemplate - the remote file template.public static FtpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, Comparator<org.apache.commons.net.ftp.FTPFile> receptionOrderComparator)
FtpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec.remoteFileTemplate - the remote file template.receptionOrderComparator - the comparator.public static FtpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
FtpMessageHandlerSpec factory for an outbound channel adapter spec.sessionFactory - the session factory.public static FtpMessageHandlerSpec outboundAdapter(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, FileExistsMode fileExistsMode)
FtpMessageHandlerSpec factory for an outbound channel adapter spec.sessionFactory - the session factory.fileExistsMode - the file exists mode.@Deprecated public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
outboundAdapter(FtpRemoteFileTemplate)FtpMessageHandlerSpec factory for an outbound channel adapter spec.remoteFileTemplate - the remote file template.@Deprecated public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, FileExistsMode fileExistsMode)
outboundAdapter(FtpRemoteFileTemplate, FileExistsMode)FtpMessageHandlerSpec factory for an outbound channel adapter spec.remoteFileTemplate - the remote file template.fileExistsMode - the file exists mode.public static FtpMessageHandlerSpec outboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate)
FtpMessageHandlerSpec factory for an outbound channel adapter spec.ftpRemoteFileTemplate - the remote file template.public static FtpMessageHandlerSpec outboundAdapter(FtpRemoteFileTemplate ftpRemoteFileTemplate, FileExistsMode fileExistsMode)
FtpMessageHandlerSpec factory for an outbound channel adapter spec.ftpRemoteFileTemplate - the remote file template.fileExistsMode - the file exists mode.public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression)
FtpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath.sessionFactory - the SessionFactory.command - the command to perform on the FTP.expression - the remoteFilePath SpEL expression.FtpOutboundGatewaySpecpublic static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, String command, String expression)
FtpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath.sessionFactory - the SessionFactory.command - the command to perform on the FTP.expression - the remoteFilePath SpEL expression.FtpOutboundGatewaySpecRemoteFileTemplatepublic static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression)
FtpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath.remoteFileTemplate - the RemoteFileTemplate.command - the command to perform on the FTP.expression - the remoteFilePath SpEL expression.FtpOutboundGatewaySpecRemoteFileTemplatepublic static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String command, String expression)
FtpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath.remoteFileTemplate - the RemoteFileTemplate.command - the command to perform on the FTP.expression - the remoteFilePath SpEL expression.FtpOutboundGatewaySpecRemoteFileTemplatepublic static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, MessageSessionCallback<org.apache.commons.net.ftp.FTPFile,?> messageSessionCallback)
FtpOutboundGatewaySpec based on the
MessageSessionCallback.sessionFactory - the SessionFactory to connect to.messageSessionCallback - the MessageSessionCallback to perform SFTP
operation(s) with the Message context.FtpOutboundGatewaySpecMessageSessionCallback