Class AbstractRemoteFileOutboundGateway<F>
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway<F>
- All Implemented Interfaces:
org.reactivestreams.Subscriber<org.springframework.messaging.Message<?>>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,org.springframework.integration.context.ExpressionCapable,org.springframework.integration.context.Orderable,org.springframework.integration.core.MessageProducer,org.springframework.integration.handler.HeaderPropagationAware,org.springframework.integration.IntegrationPattern,org.springframework.integration.support.context.NamedComponent,org.springframework.integration.support.management.IntegrationManagement,org.springframework.integration.support.management.TrackableComponent,org.springframework.messaging.MessageHandler,reactor.core.CoreSubscriber<org.springframework.messaging.Message<?>>
public abstract class AbstractRemoteFileOutboundGateway<F>
extends org.springframework.integration.handler.AbstractReplyProducingMessageHandler
Base class for Outbound Gateways that perform remote file operations.
- Since:
- 2.1
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractRemoteFileOutboundGateway.CommandEnumeration of commands supported by the gateways.static classAbstractRemoteFileOutboundGateway.OptionEnumeration of options supported by various commands. -
Field Summary
Fields inherited from class org.springframework.integration.handler.AbstractMessageProducingHandler
messagingTemplateFields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger -
Constructor Summary
Constructors Constructor Description AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, java.lang.String command, java.lang.String expression)Construct an instance with the supplied remote file template, a command ('ls', 'get' etc), and an expression to determine the filename.AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, java.lang.String expressionArg)Construct an instance with the supplied remote file template, a command ('ls', 'get' etc), and an expression to determine the filename.AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, MessageSessionCallback<F,?> messageSessionCallback)Construct an instance with the supplied remote file template and callback for performing operations on the session.AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, java.lang.String command, java.lang.String expression)Construct an instance with the supplied session factory, a command ('ls', 'get' etc), and an expression to determine the filename.AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, java.lang.String expression)Construct an instance with the supplied session factory, a command ('ls', 'get' etc), and an expression to determine the filename.AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, MessageSessionCallback<F,?> messageSessionCallback)Construct an instance using the provided session factory and callback for performing operations on the session. -
Method Summary
Modifier and Type Method Description protected abstract java.util.List<AbstractFileInfo<F>>asFileInfoList(java.util.Collection<F> files)protected voidassertRemoteFileTemplateMutability(java.lang.String propertyName)protected voiddoChmod(RemoteFileOperations<F> remoteFileOperations, java.lang.String path, int chmodToSet)Set the mode on the remote file after transfer; the default implementation does nothing.protected voiddoInit()protected abstract FenhanceNameWithSubDirectory(F file, java.lang.String directory)protected java.util.List<F>filterFiles(F[] files)protected java.util.List<java.io.File>filterMputFiles(java.io.File[] files)protected java.io.Fileget(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteDir, java.lang.String remoteFilePath, java.lang.String remoteFilename, F fileInfoParam)Copy a remote file to the configured local directory.protected abstract java.lang.StringgetFilename(F file)protected abstract java.lang.StringgetFilename(AbstractFileInfo<F> file)protected abstract longgetModified(F file)protected java.lang.StringgetRemoteFilename(java.lang.String remoteFilePath)protected RemoteFileTemplate<F>getRemoteFileTemplate()protected java.lang.ObjecthandleRequestMessage(org.springframework.messaging.Message<?> requestMessage)booleanisChmodCapable()protected abstract booleanisDirectory(F file)protected abstract booleanisLink(F file)protected java.util.List<?>ls(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String dir)List remote files to local representation.protected java.util.List<java.io.File>mGet(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteDirectory, java.lang.String remoteFilename)protected java.util.List<java.lang.String>mPut(org.springframework.messaging.Message<?> message, Session<F> session, java.io.File localDir)Put files from the provided directory to the remote server recursively.protected booleanmv(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteFilePath, java.lang.String remoteFileNewPath)Move one remote path to another.protected java.util.List<java.lang.String>nlst(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String dir)List remote files names for the provided directory.protected voidpurgeDots(java.util.List<F> lsFiles)protected voidpurgeLinks(java.util.List<F> lsFiles)protected java.lang.Stringput(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String subDirectory)Put the file based on the message to the remote server.protected voidremoteFileTemplateExplicitlySet(boolean remoteFileTemplateExplicitlySet)protected booleanrm(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteFilePath)Perform remote delete for the provided path.voidsetAutoCreateDirectory(boolean autoCreateDirectory)Determine whether the remote directory should automatically be created when sending files to the remote system.voidsetAutoCreateLocalDirectory(boolean autoCreateLocalDirectory)Abooleanflag to identify if local directory should be created automatically.voidsetCharset(java.lang.String charset)Set the charset to use when converting String payloads to bytes as the content of the remote file.voidsetChmod(int chmod)Set the file permissions after uploading, e.g.voidsetChmodOctal(java.lang.String chmod)String setter for Spring XML convenience.voidsetFileExistsMode(FileExistsMode fileExistsMode)Determine the action to take when using GET and MGET operations when the file already exists locally, or PUT and MPUT when the file exists on the remote system.voidsetFileNameExpression(org.springframework.expression.Expression fileNameExpression)Set the file name expression to determine the full path to the remote file.voidsetFileNameGenerator(FileNameGenerator fileNameGenerator)Set the file name generator used to generate the remote filename to be used when transferring files to the remote system.voidsetFilter(FileListFilter<F> filter)Set aFileListFilterto filter remote files.voidsetLocalDirectory(java.io.File localDirectory)Specify a directory path where remote files will be transferred to.voidsetLocalDirectoryExpression(org.springframework.expression.Expression localDirectoryExpression)Specify a SpEL expression to evaluate the directory path to which remote files will be transferred.voidsetLocalDirectoryExpressionString(java.lang.String localDirectoryExpression)Specify a SpEL expression to evaluate the directory path to which remote files will be transferred.voidsetLocalFilenameGeneratorExpression(org.springframework.expression.Expression localFilenameGeneratorExpression)Specify a SpEL expression for local files renaming after downloading.voidsetLocalFilenameGeneratorExpressionString(java.lang.String localFilenameGeneratorExpression)Specify a SpEL expression for local files renaming after downloading.voidsetMputFilter(FileListFilter<java.io.File> filter)AFileListFilterthat runs against the local file system view when usingMPUTcommand.voidsetOption(AbstractRemoteFileOutboundGateway.Option... options)Specify the array of options for various gateway commands.voidsetOptions(java.lang.String options)Specify the options for various gateway commands as a space-delimited string.voidsetRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)Set the remote directory expression used to determine the remote directory to which files will be sent.voidsetRemoteFileSeparator(java.lang.String remoteFileSeparator)Set the file separator when dealing with remote files; default '/'.voidsetRenameExpression(org.springframework.expression.Expression renameExpression)Specify a SpEL expression for files renaming during transfer.voidsetRenameExpressionString(java.lang.String renameExpression)Specify a SpEL expression for files renaming during transfer.voidsetTemporaryFileSuffix(java.lang.String temporaryFileSuffix)Set the temporary suffix to use when transferring files to the remote system.voidsetTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression)Set a temporary remote directory expression; used when transferring files to the remote system.voidsetUseTemporaryFileName(boolean useTemporaryFileName)Set whether a temporary file name is used when sending files to the remote system.Methods inherited from class org.springframework.integration.handler.AbstractReplyProducingMessageHandler
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplyMethods inherited from class org.springframework.integration.handler.AbstractMessageProducingHandler
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadersMethods inherited from class org.springframework.integration.handler.AbstractMessageHandler
handleMessage, onComplete, onError, onNext, onSubscribeMethods inherited from class org.springframework.integration.handler.MessageHandlerSupport
buildSendTimer, destroy, getComponentType, getManagedName, getManagedType, getMetricsCaptor, getOrder, getOverrides, isLoggingEnabled, registerMetricsCaptor, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackMethods inherited from class org.springframework.integration.context.IntegrationObjectSupport
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, MessageSessionCallback<F,?> messageSessionCallback)Construct an instance using the provided session factory and callback for performing operations on the session.- Parameters:
sessionFactory- the session factory.messageSessionCallback- the callback.
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, MessageSessionCallback<F,?> messageSessionCallback)Construct an instance with the supplied remote file template and callback for performing operations on the session.- Parameters:
remoteFileTemplate- the remote file template.messageSessionCallback- the callback.
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, java.lang.String command, @Nullable java.lang.String expression)Construct an instance with the supplied session factory, a command ('ls', 'get' etc), and an expression to determine the filename.- Parameters:
sessionFactory- the session factory.command- the command.expression- the filename expression.
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(SessionFactory<F> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, @Nullable java.lang.String expression)Construct an instance with the supplied session factory, a command ('ls', 'get' etc), and an expression to determine the filename.- Parameters:
sessionFactory- the session factory.command- the command.expression- the filename expression.
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, java.lang.String command, @Nullable java.lang.String expression)Construct an instance with the supplied remote file template, a command ('ls', 'get' etc), and an expression to determine the filename.- Parameters:
remoteFileTemplate- the remote file template.command- the command.expression- the filename expression.
-
AbstractRemoteFileOutboundGateway
public AbstractRemoteFileOutboundGateway(RemoteFileTemplate<F> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, @Nullable java.lang.String expressionArg)Construct an instance with the supplied remote file template, a command ('ls', 'get' etc), and an expression to determine the filename.- Parameters:
remoteFileTemplate- the remote file template.command- the command.expressionArg- the filename expression.
-
-
Method Details
-
remoteFileTemplateExplicitlySet
protected final void remoteFileTemplateExplicitlySet(boolean remoteFileTemplateExplicitlySet) -
assertRemoteFileTemplateMutability
protected void assertRemoteFileTemplateMutability(java.lang.String propertyName) -
setOptions
public void setOptions(java.lang.String options)Specify the options for various gateway commands as a space-delimited string.- Parameters:
options- the options to set- See Also:
AbstractRemoteFileOutboundGateway.Option
-
setOption
Specify the array of options for various gateway commands.- Parameters:
options- theAbstractRemoteFileOutboundGateway.Optionarray to use.- Since:
- 5.0
- See Also:
AbstractRemoteFileOutboundGateway.Option
-
setRemoteFileSeparator
public void setRemoteFileSeparator(java.lang.String remoteFileSeparator)Set the file separator when dealing with remote files; default '/'.- Parameters:
remoteFileSeparator- the separator.- See Also:
RemoteFileTemplate.setRemoteFileSeparator(String)
-
setLocalDirectory
public void setLocalDirectory(java.io.File localDirectory)Specify a directory path where remote files will be transferred to.- Parameters:
localDirectory- the localDirectory to set
-
setLocalDirectoryExpression
public void setLocalDirectoryExpression(org.springframework.expression.Expression localDirectoryExpression)Specify a SpEL expression to evaluate the directory path to which remote files will be transferred.- Parameters:
localDirectoryExpression- the SpEL to determine the local directory.
-
setLocalDirectoryExpressionString
public void setLocalDirectoryExpressionString(java.lang.String localDirectoryExpression)Specify a SpEL expression to evaluate the directory path to which remote files will be transferred.- Parameters:
localDirectoryExpression- the SpEL to determine the local directory.- Since:
- 5.0
-
setAutoCreateLocalDirectory
public void setAutoCreateLocalDirectory(boolean autoCreateLocalDirectory)Abooleanflag to identify if local directory should be created automatically. Defaults totrue.- Parameters:
autoCreateLocalDirectory- the autoCreateLocalDirectory to set
-
setTemporaryFileSuffix
public void setTemporaryFileSuffix(java.lang.String temporaryFileSuffix)Set the temporary suffix to use when transferring files to the remote system. Default.writing.- Parameters:
temporaryFileSuffix- the temporaryFileSuffix to set- See Also:
RemoteFileTemplate.setTemporaryFileSuffix(String)
-
setAutoCreateDirectory
public void setAutoCreateDirectory(boolean autoCreateDirectory)Determine whether the remote directory should automatically be created when sending files to the remote system.- Parameters:
autoCreateDirectory- true to create the directory.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setAutoCreateDirectory(boolean)
-
setRemoteDirectoryExpression
public void setRemoteDirectoryExpression(org.springframework.expression.Expression remoteDirectoryExpression)Set the remote directory expression used to determine the remote directory to which files will be sent.- Parameters:
remoteDirectoryExpression- the remote directory expression.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setRemoteDirectoryExpression(org.springframework.expression.Expression)
-
setTemporaryRemoteDirectoryExpression
public void setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression temporaryRemoteDirectoryExpression)Set a temporary remote directory expression; used when transferring files to the remote system. After a successful transfer the file is renamed using theremoteDirectoryExpression.- Parameters:
temporaryRemoteDirectoryExpression- the temporary remote directory expression.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setTemporaryRemoteDirectoryExpression(org.springframework.expression.Expression)
-
setFileNameExpression
public void setFileNameExpression(org.springframework.expression.Expression fileNameExpression)Set the file name expression to determine the full path to the remote file.- Parameters:
fileNameExpression- the file name expression.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setFileNameExpression(org.springframework.expression.Expression)
-
setUseTemporaryFileName
public void setUseTemporaryFileName(boolean useTemporaryFileName)Set whether a temporary file name is used when sending files to the remote system.- Parameters:
useTemporaryFileName- true to use a temporary file name.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setUseTemporaryFileName(boolean)
-
setFileNameGenerator
Set the file name generator used to generate the remote filename to be used when transferring files to the remote system.- Parameters:
fileNameGenerator- the file name generator.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setFileNameGenerator(org.springframework.integration.file.FileNameGenerator)
-
setCharset
public void setCharset(java.lang.String charset)Set the charset to use when converting String payloads to bytes as the content of the remote file. DefaultUTF-8.- Parameters:
charset- the charset.- Since:
- 5.2
- See Also:
RemoteFileTemplate.setCharset(java.lang.String)
-
setFilter
Set aFileListFilterto filter remote files.- Parameters:
filter- the filter to set
-
setMputFilter
AFileListFilterthat runs against the local file system view when usingMPUTcommand.- Parameters:
filter- the filter to set
-
setRenameExpression
public void setRenameExpression(org.springframework.expression.Expression renameExpression)Specify a SpEL expression for files renaming during transfer.- Parameters:
renameExpression- the expression to use.- Since:
- 4.3
-
setRenameExpressionString
public void setRenameExpressionString(java.lang.String renameExpression)Specify a SpEL expression for files renaming during transfer.- Parameters:
renameExpression- the String in SpEL syntax.- Since:
- 4.3
-
setLocalFilenameGeneratorExpression
public void setLocalFilenameGeneratorExpression(org.springframework.expression.Expression localFilenameGeneratorExpression)Specify a SpEL expression for local files renaming after downloading.- Parameters:
localFilenameGeneratorExpression- the expression to use.- Since:
- 3.0
-
setLocalFilenameGeneratorExpressionString
public void setLocalFilenameGeneratorExpressionString(java.lang.String localFilenameGeneratorExpression)Specify a SpEL expression for local files renaming after downloading.- Parameters:
localFilenameGeneratorExpression- the String in SpEL syntax.- Since:
- 4.3
-
setFileExistsMode
Determine the action to take when using GET and MGET operations when the file already exists locally, or PUT and MPUT when the file exists on the remote system.- Parameters:
fileExistsMode- the fileExistsMode to set.- Since:
- 4.2
-
setChmodOctal
public void setChmodOctal(java.lang.String chmod)String setter for Spring XML convenience.- Parameters:
chmod- permissions as an octal string e.g "600";- Since:
- 4.3
- See Also:
setChmod(int)
-
setChmod
public void setChmod(int chmod)Set the file permissions after uploading, e.g. 0600 for owner read/write.- Parameters:
chmod- the permissions.- Since:
- 4.3
-
isChmodCapable
public boolean isChmodCapable() -
getRemoteFileTemplate
-
doInit
protected void doInit()- Overrides:
doInitin classorg.springframework.integration.handler.AbstractReplyProducingMessageHandler
-
handleRequestMessage
protected java.lang.Object handleRequestMessage(org.springframework.messaging.Message<?> requestMessage)- Specified by:
handleRequestMessagein classorg.springframework.integration.handler.AbstractReplyProducingMessageHandler
-
nlst
protected java.util.List<java.lang.String> nlst(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String dir) throws java.io.IOExceptionList remote files names for the provided directory. The message can be consulted for some context related to the current request; isn't used in the default implementation.- Parameters:
message- the message related to the current requestsession- the session to perform list file names commanddir- the remote directory to list file names- Returns:
- the list of file/directory names in the provided dir
- Throws:
java.io.IOException- the IO exception during performing remote command- Since:
- 5.0
-
rm
protected boolean rm(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteFilePath) throws java.io.IOExceptionPerform remote delete for the provided path. The message can be consulted to determine some context; isn't used in the default implementation.- Parameters:
message- the request message related to the path to removesession- the remote protocol session to perform remove commandremoteFilePath- the remote path to remove- Returns:
- true or false as a result of the remote removal
- Throws:
java.io.IOException- the IO exception during performing remote command- Since:
- 5.0
-
mv
protected boolean mv(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteFilePath, java.lang.String remoteFileNewPath) throws java.io.IOExceptionMove one remote path to another. The message can be consulted to determine some context; isn't used in the default implementation.- Parameters:
message- the request message related to this move commandsession- the remote protocol session to perform move commandremoteFilePath- the source remote pathremoteFileNewPath- the target remote path- Returns:
- true or false as a result of the operation
- Throws:
java.io.IOException- the IO exception during performing remote command- Since:
- 5.0
-
put
protected java.lang.String put(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String subDirectory)Put the file based on the message to the remote server. The message can be consulted to determine some context. The session argument isn't used in the default implementation.- Parameters:
message- the request message related to this put commandsession- the remote protocol session related to this invocation contextsubDirectory- the target sub directory to put- Returns:
- The remote path, or null if no local file was found.
- Since:
- 5.0
-
doChmod
protected void doChmod(RemoteFileOperations<F> remoteFileOperations, java.lang.String path, int chmodToSet)Set the mode on the remote file after transfer; the default implementation does nothing.- Parameters:
remoteFileOperations- the remote file template.path- the path.chmodToSet- the chmod to set.- Since:
- 4.3
-
mPut
protected java.util.List<java.lang.String> mPut(org.springframework.messaging.Message<?> message, Session<F> session, java.io.File localDir)Put files from the provided directory to the remote server recursively. The message can be consulted to determine some context. The session argument isn't used in the default implementation.- Parameters:
message- the request message related to this mPut commandsession- the remote protocol session for this invocation contextlocalDir- the local directory to mput to the server- Returns:
- The list of remote paths for sent files
- Since:
- 5.0
-
ls
protected java.util.List<?> ls(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String dir) throws java.io.IOExceptionList remote files to local representation. The message can be consulted for some context for the current request; isn't used in the default implementation.- Parameters:
message- the message related to the list requestsession- the session to perform list commanddir- the remote directory to list content- Returns:
- the list of remote files
- Throws:
java.io.IOException- the IO exception during performing remote command
-
filterFiles
-
filterMputFiles
protected final java.util.List<java.io.File> filterMputFiles(java.io.File[] files) -
purgeLinks
-
purgeDots
-
get
protected java.io.File get(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteDir, java.lang.String remoteFilePath, java.lang.String remoteFilename, F fileInfoParam) throws java.io.IOExceptionCopy a remote file to the configured local directory.- Parameters:
message- the message.session- the session.remoteDir- the remote directory.remoteFilePath- the remote file path.remoteFilename- the remote file name.fileInfoParam- the remote file info; if null we will execute an 'ls' command first.- Returns:
- The file.
- Throws:
java.io.IOException- Any IOException.
-
mGet
protected java.util.List<java.io.File> mGet(org.springframework.messaging.Message<?> message, Session<F> session, java.lang.String remoteDirectory, java.lang.String remoteFilename) throws java.io.IOException- Throws:
java.io.IOException
-
getRemoteFilename
protected java.lang.String getRemoteFilename(java.lang.String remoteFilePath)- Parameters:
remoteFilePath- The remote file path.- Returns:
- The remote file name.
-
isDirectory
-
isLink
-
getFilename
-
getFilename
-
getModified
-
asFileInfoList
protected abstract java.util.List<AbstractFileInfo<F>> asFileInfoList(java.util.Collection<F> files) -
enhanceNameWithSubDirectory
-