Spring Integration

org.springframework.integration.file.remote.handler
Class FileTransferringMessageHandler<F>

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.handler.AbstractMessageHandler
          extended by org.springframework.integration.file.remote.handler.FileTransferringMessageHandler<F>
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, NamedComponent, Orderable, MessageHandler, TrackableComponent

public class FileTransferringMessageHandler<F>
extends AbstractMessageHandler

A MessageHandler implementation that transfers files to a remote server.

Since:
2.0
Author:
Iwein Fuld, Mark Fisher, Josh Long, Oleg Zhurakousky, David Turanski

Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
FileTransferringMessageHandler(SessionFactory<F> sessionFactory)
           
 
Method Summary
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)
           
 void setTemporaryFileSuffix(java.lang.String temporaryFileSuffix)
           
 void setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression)
           
 void setUseTemporaryFileName(boolean useTemporaryFileName)
           
 
Methods inherited from class org.springframework.integration.handler.AbstractMessageHandler
getComponentType, getOrder, handleMessage, setOrder, setShouldTrack
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

FileTransferringMessageHandler

public FileTransferringMessageHandler(SessionFactory<F> sessionFactory)
Method Detail

setAutoCreateDirectory

public void setAutoCreateDirectory(boolean autoCreateDirectory)

setRemoteFileSeparator

public void setRemoteFileSeparator(java.lang.String remoteFileSeparator)

setRemoteDirectoryExpression

public void setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)

setTemporaryRemoteDirectoryExpression

public void setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression)

getTemporaryFileSuffix

protected java.lang.String getTemporaryFileSuffix()

setTemporaryDirectory

public void setTemporaryDirectory(java.io.File temporaryDirectory)

isUseTemporaryFileName

protected boolean isUseTemporaryFileName()

setUseTemporaryFileName

public void setUseTemporaryFileName(boolean useTemporaryFileName)

setFileNameGenerator

public void setFileNameGenerator(FileNameGenerator fileNameGenerator)

setCharset

public void setCharset(java.lang.String charset)

setTemporaryFileSuffix

public void setTemporaryFileSuffix(java.lang.String temporaryFileSuffix)

onInit

protected void onInit()
               throws java.lang.Exception
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class IntegrationObjectSupport
Throws:
java.lang.Exception

handleMessageInternal

protected void handleMessageInternal(Message<?> message)
                              throws java.lang.Exception
Specified by:
handleMessageInternal in class AbstractMessageHandler
Throws:
java.lang.Exception

Spring Integration