Class FileTransferringMessageHandlerSpec<F,S extends FileTransferringMessageHandlerSpec<F,S>>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,FileTransferringMessageHandler<F>>
 
org.springframework.integration.dsl.MessageHandlerSpec<S,FileTransferringMessageHandler<F>>
 
org.springframework.integration.file.dsl.FileTransferringMessageHandlerSpec<F,S> 
- Type Parameters:
- F- the target file type.
- S- the target- FileTransferringMessageHandlerSpecimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<FileTransferringMessageHandler<F>>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- FtpMessageHandlerSpec,- SftpMessageHandlerSpec,- SmbMessageHandlerSpec
public abstract class FileTransferringMessageHandlerSpec<F,S extends FileTransferringMessageHandlerSpec<F,S>>  
extends MessageHandlerSpec<S,FileTransferringMessageHandler<F>>
implements ComponentsRegistration 
The 
MessageHandlerSpec for the FileTransferringMessageHandler.- Since:
- 5.0
- Author:
- Artem Bilan, Joaquin Santana
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedprotectedFileTransferringMessageHandlerSpec(RemoteFileTemplate<F> remoteFileTemplate) protectedFileTransferringMessageHandlerSpec(RemoteFileTemplate<F> remoteFileTemplate, FileExistsMode fileExistsMode) protectedFileTransferringMessageHandlerSpec(SessionFactory<F> sessionFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionautoCreateDirectory(boolean autoCreateDirectory) Abooleanflag to indicate automatically create the directory or not.Set the charset to use when converting String payloads to bytes as the content of the remote file.Set the charset to use when converting String payloads to bytes as the content of the remote file.chmod(int chmod) Set the file permissions after uploading, e.g.fileNameExpression(String fileNameGeneratorExpression) Set theDefaultFileNameGeneratorbased on the provided SpEL expression.fileNameGenerator(FileNameGenerator fileNameGenerator) Set the file name generator used to generate the remote filename to be used when transferring files to the remote system.remoteDirectory(String remoteDirectory) Specify a remote directory path.<P> SremoteDirectory(Function<Message<P>, String> remoteDirectoryFunction) Specify a remote directory pathFunction.remoteDirectoryExpression(String remoteDirectoryExpression) Specify a remote directory path SpEL expression.remoteDirectoryExpression(Expression remoteDirectoryExpression) Specify a remote directory path SpEL expression.remoteFileSeparator(String remoteFileSeparator) Specify a remote file separator symbol.temporaryFileSuffix(String temporaryFileSuffix) Set the temporary suffix to use when transferring files to the remote system.temporaryRemoteDirectory(String temporaryRemoteDirectory) Specify a remote directory path.<P> StemporaryRemoteDirectory(Function<Message<P>, String> temporaryRemoteDirectoryFunction) Specify a remote temporary directory pathFunction.temporaryRemoteDirectoryExpression(String temporaryRemoteDirectoryExpression) Specify a remote directory path SpEL expression.temporaryRemoteDirectoryExpression(Expression temporaryRemoteDirectoryExpression) Specify a remote directory path SpEL expression.useTemporaryFileName(boolean useTemporaryFileName) Abooleanflag to use temporary files names or not.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
FileTransferringMessageHandlerSpecprotected FileTransferringMessageHandlerSpec()
- 
FileTransferringMessageHandlerSpec
- 
FileTransferringMessageHandlerSpec
- 
FileTransferringMessageHandlerSpecprotected FileTransferringMessageHandlerSpec(RemoteFileTemplate<F> remoteFileTemplate, FileExistsMode fileExistsMode) 
 
- 
- 
Method Details- 
autoCreateDirectoryAbooleanflag to indicate automatically create the directory or not.- Parameters:
- autoCreateDirectory- true to automatically create the directory.
- Returns:
- the current Spec
 
- 
remoteFileSeparator
- 
remoteDirectory
- 
remoteDirectoryExpression
- 
remoteDirectory
- 
remoteDirectoryExpressionSpecify a remote directory path SpEL expression.- Parameters:
- remoteDirectoryExpression- the remote directory expression
- Returns:
- the current Spec
- Since:
- 6.3
 
- 
temporaryRemoteDirectory
- 
temporaryRemoteDirectoryExpression
- 
temporaryRemoteDirectory
- 
temporaryRemoteDirectoryExpressionSpecify a remote directory path SpEL expression.- Parameters:
- temporaryRemoteDirectoryExpression- the temporary remote directory path SpEL expression
- Returns:
- the current Spec
- Since:
- 6.3
 
- 
useTemporaryFileNameAbooleanflag to use temporary files names or not. Defaults totrue.- Parameters:
- useTemporaryFileName- true to use a temporary file name.
- Returns:
- the current Spec
 
- 
fileNameGeneratorSet the file name generator used to generate the remote filename to be used when transferring files to the remote system. DefaultDefaultFileNameGenerator.- Parameters:
- fileNameGenerator- the file name generator.
- Returns:
- the current Spec
 
- 
fileNameExpressionSet theDefaultFileNameGeneratorbased on the provided SpEL expression.- Parameters:
- fileNameGeneratorExpression- the SpEL expression for file names generation.
- Returns:
- the current Spec
 
- 
charset
- 
charset
- 
temporaryFileSuffix
- 
chmodSet the file permissions after uploading, e.g. 0600 for owner read/write.- Parameters:
- chmod- the permissions.
- Returns:
- the current Spec
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-