public class SftpMessageHandler extends FileTransferringMessageHandler<com.jcraft.jsch.ChannelSftp.LsEntry>
FileTransferringMessageHandler for SFTP.IntegrationManagement.ManagementOverridesremoteFileTemplateEXPRESSION_PARSER, loggerMETER_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,
java.lang.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, setUseTemporaryFileNameconfigureMetrics, getActiveCount, getActiveCountLong, getComponentType, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getOverrides, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, onComplete, onError, onNext, onSubscribe, registerMetricsCaptor, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic 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, java.lang.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.