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 and Description
    `FTPClient.NatServerResolverImpl(FTPClient client)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `resolve(String hostname)`

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

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

- - ### Constructor Detail

    - #### FTPClient.NatServerResolverImpl

          public FTPClient.NatServerResolverImpl(FTPClient client)

  - ### Method Detail

    - #### resolve

          public String resolve(String hostname)
                         throws UnknownHostException

      Specified by:
        `resolve` in interface `FTPClient.HostnameResolver`
      Throws:
        `UnknownHostException`

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.