Clean up some JavaDocs; remove deprecated API
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2019 the original author or authors.
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -108,31 +108,6 @@ public final class Ftp {
|
||||
return outboundAdapter(new FtpRemoteFileTemplate(sessionFactory), fileExistsMode);
|
||||
}
|
||||
|
||||
/**
|
||||
* A {@link FtpMessageHandlerSpec} factory for an outbound channel adapter spec.
|
||||
* @param remoteFileTemplate the remote file template.
|
||||
* @return the spec.
|
||||
* @deprecated in favor of {@link #outboundAdapter(FtpRemoteFileTemplate)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<FTPFile> remoteFileTemplate) {
|
||||
return new FtpMessageHandlerSpec(remoteFileTemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* A {@link FtpMessageHandlerSpec} factory for an outbound channel adapter spec.
|
||||
* @param remoteFileTemplate the remote file template.
|
||||
* @param fileExistsMode the file exists mode.
|
||||
* @return the spec.
|
||||
* @deprecated in favor of {@link #outboundAdapter(FtpRemoteFileTemplate, FileExistsMode)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static FtpMessageHandlerSpec outboundAdapter(RemoteFileTemplate<FTPFile> remoteFileTemplate,
|
||||
FileExistsMode fileExistsMode) {
|
||||
|
||||
return new FtpMessageHandlerSpec(remoteFileTemplate, fileExistsMode);
|
||||
}
|
||||
|
||||
/**
|
||||
* A {@link FtpMessageHandlerSpec} factory for an outbound channel adapter spec.
|
||||
* @param ftpRemoteFileTemplate the remote file template.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2020 the original author or authors.
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,7 +19,6 @@ package org.springframework.integration.ftp.dsl;
|
||||
import org.apache.commons.net.ftp.FTPFile;
|
||||
|
||||
import org.springframework.integration.file.dsl.FileTransferringMessageHandlerSpec;
|
||||
import org.springframework.integration.file.remote.RemoteFileTemplate;
|
||||
import org.springframework.integration.file.remote.session.SessionFactory;
|
||||
import org.springframework.integration.file.support.FileExistsMode;
|
||||
import org.springframework.integration.ftp.outbound.FtpMessageHandler;
|
||||
@@ -40,16 +39,6 @@ public class FtpMessageHandlerSpec extends FileTransferringMessageHandlerSpec<FT
|
||||
this.target = new FtpMessageHandler(sessionFactory);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
protected FtpMessageHandlerSpec(RemoteFileTemplate<FTPFile> remoteFileTemplate) {
|
||||
this.target = new FtpMessageHandler(remoteFileTemplate.getSessionFactory());
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
protected FtpMessageHandlerSpec(RemoteFileTemplate<FTPFile> remoteFileTemplate, FileExistsMode fileExistsMode) {
|
||||
this.target = new FtpMessageHandler(remoteFileTemplate, fileExistsMode);
|
||||
}
|
||||
|
||||
protected FtpMessageHandlerSpec(FtpRemoteFileTemplate ftpRemoteFileTemplate) {
|
||||
this.target = new FtpMessageHandler(ftpRemoteFileTemplate);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,6 +37,7 @@ import org.springframework.integration.ftp.session.FtpRemoteFileTemplate;
|
||||
* @author Deepak Gunasekaran
|
||||
*
|
||||
* @since 4.1.9
|
||||
*
|
||||
* @see FtpRemoteFileTemplate
|
||||
*/
|
||||
public class FtpMessageHandler extends FileTransferringMessageHandler<FTPFile> {
|
||||
@@ -50,18 +51,6 @@ public class FtpMessageHandler extends FileTransferringMessageHandler<FTPFile> {
|
||||
super(remoteFileTemplate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor which sets the RemoteFileTemplate and FileExistsMode.
|
||||
* @param remoteFileTemplate the remote file template.
|
||||
* @param mode the file exists mode.
|
||||
* @deprecated in favor of
|
||||
* {@link #FtpMessageHandler(FtpRemoteFileTemplate, FileExistsMode)}
|
||||
*/
|
||||
@Deprecated
|
||||
public FtpMessageHandler(RemoteFileTemplate<FTPFile> remoteFileTemplate, FileExistsMode mode) {
|
||||
super(remoteFileTemplate, mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor which sets the FtpRemoteFileTemplate and FileExistsMode.
|
||||
* @param ftpRemoteFileTemplate the remote file template.
|
||||
|
||||
Reference in New Issue
Block a user