public final class Ftp
extends java.lang.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,
java.util.Comparator<java.io.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,
java.util.Comparator<AbstractFileInfo<org.apache.commons.net.ftp.FTPFile>> receptionOrderComparator)
A
FtpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
static FtpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
FileExistsMode fileExistsMode)
A
FtpMessageHandlerSpec factory for an outbound channel adapter spec. |
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,
java.lang.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,
java.lang.String command,
java.lang.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,
java.lang.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,
java.lang.String command,
java.lang.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, java.util.Comparator<java.io.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, java.util.Comparator<AbstractFileInfo<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.public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate)
FtpMessageHandlerSpec
factory for an outbound channel adapter spec.remoteFileTemplate
- the remote file template.public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, FileExistsMode fileExistsMode)
FtpMessageHandlerSpec
factory for an outbound channel adapter spec.remoteFileTemplate
- the remote file template.fileExistsMode
- the file exists mode.public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, java.lang.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.FtpOutboundGatewaySpec
public static FtpOutboundGatewaySpec outboundGateway(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory, java.lang.String command, java.lang.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.FtpOutboundGatewaySpec
RemoteFileTemplate
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, java.lang.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.FtpOutboundGatewaySpec
RemoteFileTemplate
public static FtpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, java.lang.String command, java.lang.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.FtpOutboundGatewaySpec
RemoteFileTemplate
public 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.FtpOutboundGatewaySpec
MessageSessionCallback