Skip to content

Commit e943cc1

Browse files
authored
[java] deprecate FtpProxy (#15907)
Deprecates FTP Proxy as it is no longer supported by browsers
1 parent a349ab9 commit e943cc1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

java/src/org/openqa/selenium/Proxy.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public String toString() {
6767
}
6868

6969
private static final String PROXY_TYPE = "proxyType";
70-
private static final String FTP_PROXY = "ftpProxy";
70+
@Deprecated private static final String FTP_PROXY = "ftpProxy";
7171
private static final String HTTP_PROXY = "httpProxy";
7272
private static final String NO_PROXY = "noProxy";
7373
private static final String SSL_PROXY = "sslProxy";
@@ -80,7 +80,7 @@ public String toString() {
8080

8181
private ProxyType proxyType = ProxyType.UNSPECIFIED;
8282
private boolean autodetect = false;
83-
private @Nullable String ftpProxy;
83+
@Deprecated private @Nullable String ftpProxy;
8484
private @Nullable String httpProxy;
8585
private @Nullable String noProxy;
8686
private @Nullable String sslProxy;
@@ -225,7 +225,9 @@ public Proxy setAutodetect(boolean autodetect) {
225225
* Gets the FTP proxy.
226226
*
227227
* @return the FTP proxy hostname if present, or null if not set
228+
* @deprecated getFtpProxy is deprecated and will be removed in a future release.
228229
*/
230+
@Deprecated
229231
public @Nullable String getFtpProxy() {
230232
return ftpProxy;
231233
}
@@ -235,7 +237,9 @@ public Proxy setAutodetect(boolean autodetect) {
235237
*
236238
* @param ftpProxy the proxy host, expected format is <code>hostname.com:1234</code>
237239
* @return reference to self
240+
* @deprecated setFtpProxy is deprecated and will be removed in a future release.
238241
*/
242+
@Deprecated
239243
public Proxy setFtpProxy(String ftpProxy) {
240244
verifyProxyTypeCompatibility(ProxyType.MANUAL);
241245
this.proxyType = ProxyType.MANUAL;

0 commit comments

Comments
 (0)