Class SftpMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.file.remote.handler.FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.outbound.SftpMessageHandler
- All Implemented Interfaces:
org.reactivestreams.Subscriber<org.springframework.messaging.Message<?>>
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.core.Ordered
,org.springframework.integration.context.ExpressionCapable
,org.springframework.integration.context.Orderable
,org.springframework.integration.IntegrationPattern
,org.springframework.integration.support.context.NamedComponent
,org.springframework.integration.support.management.IntegrationManagement
,org.springframework.integration.support.management.TrackableComponent
,org.springframework.messaging.MessageHandler
,reactor.core.CoreSubscriber<org.springframework.messaging.Message<?>>
public class SftpMessageHandler
extends org.springframework.integration.file.remote.handler.FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
Subclass of
FileTransferringMessageHandler
for SFTP.- Since:
- 4.3
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.handler.FileTransferringMessageHandler
remoteFileTemplate
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
Constructors Constructor Description SftpMessageHandler(org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)
SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate)
SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate, org.springframework.integration.file.support.FileExistsMode mode)
-
Method Summary
Modifier and Type Method Description protected void
doChmod(org.springframework.integration.file.remote.RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, java.lang.String path, int chmod)
boolean
isChmodCapable()
Methods inherited from class org.springframework.integration.file.remote.handler.FileTransferringMessageHandler
getTemporaryFileSuffix, handleMessageInternal, isUseTemporaryFileName, onInit, setAutoCreateDirectory, setCharset, setChmod, setChmodOctal, setFileNameGenerator, setRemoteDirectoryExpression, setRemoteDirectoryExpressionString, setRemoteFileSeparator, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setTemporaryRemoteDirectoryExpressionString, setUseTemporaryFileName
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
handleMessage, onComplete, onError, onNext, onSubscribe
Methods inherited from class org.springframework.integration.handler.MessageHandlerSupport
buildSendTimer, destroy, getComponentType, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrack
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SftpMessageHandler
- Parameters:
remoteFileTemplate
- the template.- See Also:
(org.springframework.integration.file.remote.RemoteFileTemplate)
-
SftpMessageHandler
public SftpMessageHandler(SftpRemoteFileTemplate remoteFileTemplate, org.springframework.integration.file.support.FileExistsMode mode)- Parameters:
remoteFileTemplate
- the template.mode
- the file exists mode.- See Also:
(org.springframework.integration.file.remote.RemoteFileTemplate, FileExistsMode)
-
SftpMessageHandler
public SftpMessageHandler(org.springframework.integration.file.remote.session.SessionFactory<com.jcraft.jsch.ChannelSftp.LsEntry> sessionFactory)- Parameters:
sessionFactory
- the session factory.- See Also:
(SessionFactory)
-
-
Method Details
-
isChmodCapable
public boolean isChmodCapable()- Overrides:
isChmodCapable
in classorg.springframework.integration.file.remote.handler.FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
-
doChmod
protected void doChmod(org.springframework.integration.file.remote.RemoteFileTemplate<com.jcraft.jsch.ChannelSftp.LsEntry> remoteFileTemplate, java.lang.String path, int chmod)- Overrides:
doChmod
in classorg.springframework.integration.file.remote.handler.FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
-