diff --git a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java index 7c072fa6ad..bf436f8faf 100644 --- a/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java +++ b/spring-integration-file/src/main/java/org/springframework/integration/file/remote/gateway/AbstractRemoteFileOutboundGateway.java @@ -750,6 +750,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply * @param message the request message related to this put command * @param session the remote protocol session related to this invocation context * @param subDirectory the target sub directory to put + * @return The remote path, or null if no local file was found. * @since 5.0 */ protected String put(Message message, Session session, String subDirectory) { @@ -804,6 +805,7 @@ public abstract class AbstractRemoteFileOutboundGateway extends AbstractReply * @param message the request message related to this mPut command * @param session the remote protocol session for this invocation context * @param localDir the local directory to mput to the server + * @return The list of remote paths for sent files * @since 5.0 */ protected List mPut(Message message, Session session, File localDir) { diff --git a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/dsl/FtpOutboundGatewaySpec.java b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/dsl/FtpOutboundGatewaySpec.java index ed3d7e92f6..a1c6cc36f1 100644 --- a/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/dsl/FtpOutboundGatewaySpec.java +++ b/spring-integration-ftp/src/main/java/org/springframework/integration/ftp/dsl/FtpOutboundGatewaySpec.java @@ -61,6 +61,8 @@ public class FtpOutboundGatewaySpec extends RemoteFileOutboundGatewaySpec, String> workingDirFunction) { ((FtpOutboundGateway) this.target).setWorkingDirExpression(new FunctionExpression<>(workingDirFunction)); return this; } - - }