public class FileTransferringMessageHandler<F> extends AbstractMessageHandler
MessageHandler
implementation that transfers files to a remote server.logger
Constructor and Description |
---|
FileTransferringMessageHandler(RemoteFileTemplate<F> remoteFileTemplate) |
FileTransferringMessageHandler(SessionFactory<F> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getTemporaryFileSuffix() |
protected void |
handleMessageInternal(Message<?> message) |
protected boolean |
isUseTemporaryFileName() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setAutoCreateDirectory(boolean autoCreateDirectory) |
void |
setCharset(java.lang.String charset) |
void |
setFileNameGenerator(FileNameGenerator fileNameGenerator) |
void |
setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression) |
void |
setRemoteFileSeparator(java.lang.String remoteFileSeparator) |
void |
setTemporaryDirectory(java.io.File temporaryDirectory)
Deprecated.
This property is no longer used; byte[] and String payloads are written directly
|
void |
setTemporaryFileSuffix(java.lang.String temporaryFileSuffix) |
void |
setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression) |
void |
setUseTemporaryFileName(boolean useTemporaryFileName) |
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public FileTransferringMessageHandler(SessionFactory<F> sessionFactory)
public FileTransferringMessageHandler(RemoteFileTemplate<F> remoteFileTemplate)
public void setAutoCreateDirectory(boolean autoCreateDirectory)
public void setRemoteFileSeparator(java.lang.String remoteFileSeparator)
public void setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)
public void setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression)
protected java.lang.String getTemporaryFileSuffix()
@Deprecated public void setTemporaryDirectory(java.io.File temporaryDirectory)
protected boolean isUseTemporaryFileName()
public void setUseTemporaryFileName(boolean useTemporaryFileName)
public void setFileNameGenerator(FileNameGenerator fileNameGenerator)
public void setCharset(java.lang.String charset)
public void setTemporaryFileSuffix(java.lang.String temporaryFileSuffix)
protected void onInit() throws java.lang.Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
java.lang.Exception
protected void handleMessageInternal(Message<?> message) throws java.lang.Exception
handleMessageInternal
in class AbstractMessageHandler
java.lang.Exception