public class FtpMessageHandler extends FileTransferringMessageHandler<org.apache.commons.net.ftp.FTPFile>
FileTransferringMessageHandler
extension. Based on the
FtpRemoteFileTemplate
.FtpRemoteFileTemplate
IntegrationManagement.ManagementOverrides
remoteFileTemplate
EXPRESSION_PARSER, logger
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
FtpMessageHandler(FtpRemoteFileTemplate remoteFileTemplate) |
FtpMessageHandler(FtpRemoteFileTemplate ftpRemoteFileTemplate,
FileExistsMode mode)
Constructor which sets the FtpRemoteFileTemplate and FileExistsMode.
|
FtpMessageHandler(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate,
FileExistsMode mode)
Deprecated.
|
FtpMessageHandler(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
doChmod(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> 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 FtpMessageHandler(SessionFactory<org.apache.commons.net.ftp.FTPFile> sessionFactory)
public FtpMessageHandler(FtpRemoteFileTemplate remoteFileTemplate)
@Deprecated public FtpMessageHandler(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, FileExistsMode mode)
FtpMessageHandler(FtpRemoteFileTemplate, FileExistsMode)
remoteFileTemplate
- the remote file template.mode
- the file exists mode.public FtpMessageHandler(FtpRemoteFileTemplate ftpRemoteFileTemplate, FileExistsMode mode)
ftpRemoteFileTemplate
- the remote file template.mode
- the file exists mode.public boolean isChmodCapable()
isChmodCapable
in class FileTransferringMessageHandler<org.apache.commons.net.ftp.FTPFile>
protected void doChmod(RemoteFileTemplate<org.apache.commons.net.ftp.FTPFile> remoteFileTemplate, String path, int chmod)
FileTransferringMessageHandler
doChmod
in class FileTransferringMessageHandler<org.apache.commons.net.ftp.FTPFile>
remoteFileTemplate
- the remote file template.path
- the path.chmod
- the chmod to set.