public class SftpMessageHandler extends FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
FileTransferringMessageHandler
for SFTP.IntegrationManagement.ManagementOverrides
remoteFileTemplate
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_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, setUseTemporaryFileName
handleMessage, onComplete, onError, onNext, onSubscribe
buildSendTimer, destroy, getComponentType, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
afterPropertiesSet, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getThisAs
getBeanName, getComponentName
public 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)
FileTransferringMessageHandler
doChmod
in class FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
remoteFileTemplate
- the remote file template.path
- the path.chmod
- the chmod to set.