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

  - ### Method Summary

    All Methods Instance Methods Concrete 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

    - #### NatServerResolverImpl

          public NatServerResolverImpl(FTPClient client)

  - ### Method Detail

    - #### resolve

          public String resolve(String hostname)
                         throws UnknownHostException

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

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