public class SftpMessageHandler extends FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
FileTransferringMessageHandler for SFTP.IntegrationManagement.ManagementOverridesremoteFileTemplateEXPRESSION_PARSER, loggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
SftpMessageHandler(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory) |
SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate) |
SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate,
FileExistsMode mode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doChmod(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate,
String path,
int chmod)
Set the mode on the remote file after transfer; the default implementation does
nothing.
|
boolean |
isChmodCapable() |
getTemporaryFileSuffix, handleMessageInternal, isUseTemporaryFileName, onInit, setAutoCreateDirectory, setCharset, setChmod, setChmodOctal, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteDirectoryExpressionString, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setTemporaryRemoteDirectoryExpressionString, setUseTemporaryFileNamehandleMessage, onComplete, onError, onNext, onSubscribebuildSendTimer, destroy, getComponentType, getIntegrationPatternType, 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 SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate)
remoteFileTemplate - the template.(org.springframework.integration.file.remote.RemoteFileTemplate)public SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate, FileExistsMode mode)
remoteFileTemplate - the template.mode - the file exists mode.(org.springframework.integration.file.remote.RemoteFileTemplate, FileExistsMode)public SftpMessageHandler(SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
sessionFactory - the session factory.(SessionFactory)public boolean isChmodCapable()
isChmodCapable in class FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>protected void doChmod(RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, String path, int chmod)
FileTransferringMessageHandlerdoChmod in class FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>remoteFileTemplate - the remote file template.path - the path.chmod - the chmod to set.