public class SftpOutboundGateway extends AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>
AbstractRemoteFileOutboundGateway.Command, AbstractRemoteFileOutboundGateway.OptionAbstractReplyProducingMessageHandler.RequestHandlerIntegrationManagement.ManagementOverridesmessagingTemplateEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
SftpOutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
Construct an instance with the supplied remote file template and callback
for performing operations on the session.
|
SftpOutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
String command,
String expression)
Construct an instance with the supplied remote file template, a command ('ls',
'get' etc), and an expression to determine the filename.
|
SftpOutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
Construct an instance using the provided session factory and callback for
performing operations on the session.
|
SftpOutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory,
String command,
String expression)
Construct an instance with the supplied session factory, a command ('ls', 'get'
etc), and an expression to determine the filename.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>> |
asFileInfoList(Collection<com.jcraft.jsch.ChannelSftp.LsEntry> files) |
protected void |
doChmod(RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileOperations,
String path,
int chmod)
Set the mode on the remote file after transfer; the default implementation does
nothing.
|
protected com.jcraft.jsch.ChannelSftp.LsEntry |
enhanceNameWithSubDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file,
String directory) |
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected String |
getFilename(AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry> file) |
protected String |
getFilename(com.jcraft.jsch.ChannelSftp.LsEntry file) |
protected long |
getModified(com.jcraft.jsch.ChannelSftp.LsEntry file) |
boolean |
isChmodCapable() |
protected boolean |
isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file) |
protected boolean |
isLink(com.jcraft.jsch.ChannelSftp.LsEntry file) |
assertRemoteFileTemplateMutability, doInit, filterFiles, filterMputFiles, get, getRemoteFilename, getRemoteFileTemplate, handleRequestMessage, ls, mGet, mPut, mv, nlst, purgeDots, purgeLinks, put, remoteFileTemplateExplicitlySet, rm, setAutoCreateDirectory, setAutoCreateLocalDirectory, setCharset, setChmod, setChmodOctal, setFileExistsMode, setFileNameExpression, setFileNameGenerator, setFilter, setLocalDirectory, setLocalDirectoryExpression, setLocalDirectoryExpressionString, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMputFilter, setOption, setOptions, setRemoteDirectoryExpression, setRemoteFileSeparator, setRenameExpression, setRenameExpressionString, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileNamedoInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplyaddNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadershandleMessage, onComplete, onError, onNext, onSubscribebuildSendTimer, destroy, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetThisAsgetBeanName, getComponentNamepublic SftpOutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
sessionFactory - the session factory.messageSessionCallback - the callback.public SftpOutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, MessageSessionCallback<com.jcraft.jsch.ChannelSftp.LsEntry,?> messageSessionCallback)
remoteFileTemplate - the remote file template.messageSessionCallback - the callback.public SftpOutboundGateway(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory, String command, String expression)
sessionFactory - the session factory.command - the command.expression - the filename expression.public SftpOutboundGateway(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, String command, String expression)
remoteFileTemplate - the remote file template.command - the command.expression - the filename expression.protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)
isDirectory in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected boolean isLink(com.jcraft.jsch.ChannelSftp.LsEntry file)
isLink in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected String getFilename(com.jcraft.jsch.ChannelSftp.LsEntry file)
getFilename in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected String getFilename(AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry> file)
getFilename in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected List<AbstractFileInfo<com.jcraft.jsch.ChannelSftp.LsEntry>> asFileInfoList(Collection<com.jcraft.jsch.ChannelSftp.LsEntry> files)
asFileInfoList in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected long getModified(com.jcraft.jsch.ChannelSftp.LsEntry file)
getModified in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected com.jcraft.jsch.ChannelSftp.LsEntry enhanceNameWithSubDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file,
String directory)
enhanceNameWithSubDirectory in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>public String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class MessageHandlerSupportpublic boolean isChmodCapable()
isChmodCapable in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>protected void doChmod(RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileOperations, String path, int chmod)
AbstractRemoteFileOutboundGatewaydoChmod in class AbstractRemoteFileOutboundGateway<com.jcraft.jsch.ChannelSftp.LsEntry>remoteFileOperations - the remote file template.path - the path.chmod - the chmod to set.