public final class Sftp
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SftpInboundChannelAdapterSpec |
inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
An
SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec. |
static SftpInboundChannelAdapterSpec |
inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
java.util.Comparator<java.io.File> receptionOrderComparator)
An
SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec. |
static SftpStreamingInboundChannelAdapterSpec |
inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate)
An
SftpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec. |
static SftpStreamingInboundChannelAdapterSpec |
inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
java.util.Comparator<com.jcraft.jsch.ChannelSftp.LsEntry> receptionOrderComparator)
An
SftpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec. |
static SftpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate)
An
SftpMessageHandlerSpec factory for an outbound channel adapter spec. |
static SftpMessageHandlerSpec |
outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
FileExistsMode fileExistsMode)
An
SftpMessageHandlerSpec factory for an outbound channel adapter spec. |
static SftpMessageHandlerSpec |
outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
An
SftpMessageHandlerSpec factory for an outbound channel adapter spec. |
static SftpMessageHandlerSpec |
outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
FileExistsMode fileExistsMode)
An
SftpMessageHandlerSpec factory for an outbound channel adapter spec. |
static SftpOutboundGatewaySpec |
outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command command,
java.lang.String expression)
Produce a
SftpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath. |
static SftpOutboundGatewaySpec |
outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
java.lang.String command,
java.lang.String expression)
Produce a
SftpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath. |
static SftpOutboundGatewaySpec |
outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
AbstractRemoteFileOutboundGateway.Command command,
java.lang.String expression)
Produce a
SftpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
static SftpOutboundGatewaySpec |
outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
Produce a
SftpOutboundGatewaySpec based on the MessageSessionCallback. |
static SftpOutboundGatewaySpec |
outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
java.lang.String command,
java.lang.String expression)
Produce a
SftpOutboundGatewaySpec based on the SessionFactory,
AbstractRemoteFileOutboundGateway.Command and expression for the
remoteFilePath. |
public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec.sessionFactory - the session factory.public static SftpInboundChannelAdapterSpec inboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, java.util.Comparator<java.io.File> receptionOrderComparator)
SftpInboundChannelAdapterSpec factory for an inbound channel adapter spec.sessionFactory - the session factory.receptionOrderComparator - the comparator.public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate)
SftpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec.remoteFileTemplate - the remote file template.public static SftpStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, java.util.Comparator<com.jcraft.jsch.ChannelSftp.LsEntry> receptionOrderComparator)
SftpStreamingInboundChannelAdapterSpec factory for an inbound channel
adapter spec.remoteFileTemplate - the remote file template.receptionOrderComparator - the comparator.public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
SftpMessageHandlerSpec factory for an outbound channel adapter spec.sessionFactory - the session factory.public static SftpMessageHandlerSpec outboundAdapter(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, FileExistsMode fileExistsMode)
SftpMessageHandlerSpec factory for an outbound channel adapter spec.sessionFactory - the session factory.fileExistsMode - the file exists mode.public static SftpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate)
SftpMessageHandlerSpec factory for an outbound channel adapter spec.remoteFileTemplate - the remote file template.public static SftpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, FileExistsMode fileExistsMode)
SftpMessageHandlerSpec factory for an outbound channel adapter spec.remoteFileTemplate - the remote file template.fileExistsMode - the file exists mode.public static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, java.lang.String expression)
SftpOutboundGatewaySpec 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.SftpOutboundGatewaySpecpublic static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, java.lang.String command, java.lang.String expression)
SftpOutboundGatewaySpec 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.SftpOutboundGatewaySpecRemoteFileTemplatepublic static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, java.lang.String expression)
SftpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.remoteFileTemplate - the RemoteFileTemplate to be based on.command - the command to perform on the SFTP.expression - the remoteFilePath SpEL expression.SftpOutboundGatewaySpecRemoteFileTemplatepublic static SftpOutboundGatewaySpec outboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, java.lang.String command, java.lang.String expression)
SftpOutboundGatewaySpec based on the RemoteFileTemplate,
AbstractRemoteFileOutboundGateway.Command and expression for the remoteFilePath.remoteFileTemplate - the RemoteFileTemplate to be based on.command - the command to perform on the SFTP.expression - the remoteFilePath SpEL expression.SftpOutboundGatewaySpecRemoteFileTemplatepublic static SftpOutboundGatewaySpec outboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
SftpOutboundGatewaySpec based on the MessageSessionCallback.sessionFactory - the SessionFactory to connect to.messageSessionCallback - the MessageSessionCallback to perform SFTP operation(s)
with the Message context.SftpOutboundGatewaySpecMessageSessionCallback