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 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

  Modifier and Type
  Method
  Description
  `String`
  `resolve(String hostname)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NatServerResolverImpl

    public NatServerResolverImpl(FTPClient client)

- ## Method Details

  - ### resolve

    public String resolve(String hostname) throws UnknownHostException
    Specified by:
      `resolve` in interface `FTPClient.HostnameResolver`
    Throws:
      `UnknownHostException`