Package org.apache.commons.net.ftp
Class FTPClient.NatServerResolverImpl
- java.lang.Object
-
- org.apache.commons.net.ftp.FTPClient.NatServerResolverImpl
-
- All Implemented Interfaces:
FTPClient.HostnameResolver
- Enclosing class:
- FTPClient
public static class FTPClient.NatServerResolverImpl extends java.lang.Object implements FTPClient.HostnameResolver
Default strategy for passive NAT workaround (site-local replies are replaced.)- Since:
- 3.6
-
-
Constructor Summary
Constructors Constructor Description NatServerResolverImpl(FTPClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
resolve(java.lang.String hostname)
-
-
-
Constructor Detail
-
NatServerResolverImpl
public NatServerResolverImpl(FTPClient client)
-
-
Method Detail
-
resolve
public java.lang.String resolve(java.lang.String hostname) throws java.net.UnknownHostException
- Specified by:
resolve
in interfaceFTPClient.HostnameResolver
- Throws:
java.net.UnknownHostException
-
-