/** * Configure a suffix to temporarily apply to the local filename; when copied the * file is renamed to its final name. Default: '.writing'. * @param temporaryFileSuffix the temporaryFileSuffix. * @return the spec. */ public S temporaryFileSuffix(String temporaryFileSuffix) { this.synchronizer.setTemporaryFileSuffix(temporaryFileSuffix); return _this(); }
/** * Configure a {@link Function} to be invoked to generate the local file name; * argument passed to the {@code apply} method is the remote file name. * @param localFilenameFunction the localFilenameFunction. * @return the spec. * @see FunctionExpression */ public S localFilename(Function<String, String> localFilenameFunction) { return localFilenameExpression(new FunctionExpression<String>(localFilenameFunction)); }
/** * Configure the local directory to copy files to. * @param localDirectory the localDirectory. * @return the spec. */ public S localDirectory(File localDirectory) { this.target.setLocalDirectory(localDirectory); return _this(); }
/** * Configure a SpEL expression to generate the local file name; the root object for * the evaluation is the remote file name. * @param localFilenameExpression the localFilenameExpression. * @return the spec. */ public S localFilenameExpression(String localFilenameExpression) { return localFilenameExpression(PARSER.parseExpression(localFilenameExpression)); }
/** * Configure the file name path separator used by the remote system. Defaults to '/'. * @param remoteFileSeparator the remoteFileSeparator. * @return the spec. */ public S remoteFileSeparator(String remoteFileSeparator) { this.synchronizer.setRemoteFileSeparator(remoteFileSeparator); return _this(); }
/** * Configure a SpEL expression to generate the local file name; the root object for * the evaluation is the remote file name. * @param localFilenameExpression the localFilenameExpression. * @return the spec. */ public S localFilenameExpression(String localFilenameExpression) { return localFilenameExpression(PARSER.parseExpression(localFilenameExpression)); }
/** * Configure the local directory to copy files to. * @param localDirectory the localDirectory. * @return the spec. */ public S localDirectory(File localDirectory) { this.target.setLocalDirectory(localDirectory); return _this(); }
/** * Configure a {@link Function} to be invoked to generate the local file name; * argument passed to the {@code apply} method is the remote file name. * @param localFilenameFunction the localFilenameFunction. * @return the spec. * @see FunctionExpression */ public S localFilename(Function<String, String> localFilenameFunction) { return localFilenameExpression(new FunctionExpression<String>(localFilenameFunction)); }
/** * @param localFileListFilter the localFileListFilter. * @return the spec. * @see AbstractInboundFileSynchronizingMessageSource#setLocalFilter(FileListFilter) */ public S localFilter(FileListFilter<File> localFileListFilter) { this.target.setLocalFilter(localFileListFilter); return _this(); }
/** * Configure a SpEL expression to generate the local file name; the root object for * the evaluation is the remote file name. * @param localFilenameExpression the localFilenameExpression. * @return the spec. * @since 1.1.1 */ public S localFilenameExpression(Expression localFilenameExpression) { this.synchronizer.setLocalFilenameGeneratorExpression(localFilenameExpression); return _this(); }
/** * Configure the file name path separator used by the remote system. Defaults to '/'. * @param remoteFileSeparator the remoteFileSeparator. * @return the spec. */ public S remoteFileSeparator(String remoteFileSeparator) { this.synchronizer.setRemoteFileSeparator(remoteFileSeparator); return _this(); }
/** * @param remoteDirectory the remoteDirectory. * @return the spec. * @see AbstractInboundFileSynchronizer#setRemoteDirectory(String) */ public S remoteDirectory(String remoteDirectory) { this.synchronizer.setRemoteDirectory(remoteDirectory); return _this(); }
/** * Specify an expression that evaluates to the full path to the remote directory. * @param remoteDirectoryExpression The remote directory expression. * @return the spec. * @since 1.1.1 */ public S remoteDirectoryExpression(Expression remoteDirectoryExpression) { this.synchronizer.setRemoteDirectoryExpression(remoteDirectoryExpression); return _this(); }
/** * Configure whether the local directory should be created by the adapter. * @param autoCreateLocalDirectory the autoCreateLocalDirectory * @return the spec. */ public S autoCreateLocalDirectory(boolean autoCreateLocalDirectory) { this.target.setAutoCreateLocalDirectory(autoCreateLocalDirectory); return _this(); }
/** * Configure whether the local directory should be created by the adapter. * @param autoCreateLocalDirectory the autoCreateLocalDirectory * @return the spec. */ public S autoCreateLocalDirectory(boolean autoCreateLocalDirectory) { this.target.setAutoCreateLocalDirectory(autoCreateLocalDirectory); return _this(); }
/** * @param localFileListFilter the localFileListFilter. * @return the spec. * @see AbstractInboundFileSynchronizingMessageSource#setLocalFilter(FileListFilter) */ public S localFilter(FileListFilter<File> localFileListFilter) { this.target.setLocalFilter(localFileListFilter); return _this(); }
/** * Configure a SpEL expression to generate the local file name; the root object for * the evaluation is the remote file name. * @param localFilenameExpression the localFilenameExpression. * @return the spec. * @since 1.1.1 */ public S localFilenameExpression(Expression localFilenameExpression) { this.synchronizer.setLocalFilenameGeneratorExpression(localFilenameExpression); return _this(); }
/** * Configure a suffix to temporarily apply to the local filename; when copied the * file is renamed to its final name. Default: '.writing'. * @param temporaryFileSuffix the temporaryFileSuffix. * @return the spec. */ public S temporaryFileSuffix(String temporaryFileSuffix) { this.synchronizer.setTemporaryFileSuffix(temporaryFileSuffix); return _this(); }
/** * Specify an expression that evaluates to the full path to the remote directory. * @param remoteDirectoryExpression The remote directory expression. * @return the spec. * @since 1.1.1 */ public S remoteDirectoryExpression(Expression remoteDirectoryExpression) { this.synchronizer.setRemoteDirectoryExpression(remoteDirectoryExpression); return _this(); }
/** * @param remoteDirectory the remoteDirectory. * @return the spec. * @see AbstractInboundFileSynchronizer#setRemoteDirectory(String) */ public S remoteDirectory(String remoteDirectory) { this.synchronizer.setRemoteDirectory(remoteDirectory); return _this(); }