org.apache.commons.net.ftp

## Interface FTPClient.HostnameResolver

- All Known Implementing Classes:
    FTPClient.NatServerResolverImpl
  Enclosing class:
    FTPClient

      public static interface FTPClient.HostnameResolver

  Strategy interface for updating host names received from FTP server for passive NAT workaround.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `resolve(String hostname)` Resolves a host name.

- - ### Method Detail

    - #### resolve

          String resolve(String hostname)
                  throws UnknownHostException

      Resolves a host name.
      Parameters:
        `hostname` - the hostname to resolve.
      Returns:
        The resolved hostname.
      Throws:
        `UnknownHostException` - if the host is unknown.