Class FTPClient.NatServerResolverImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FTPClient client  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String resolve​(java.lang.String hostname)
      Resolves a host name.
      • 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)
        Constructs a new instance.
        Parameters:
        client - the FTP client.
    • Method Detail

      • resolve

        public java.lang.String resolve​(java.lang.String hostname)
                                 throws java.net.UnknownHostException
        Description copied from interface: FTPClient.HostnameResolver
        Resolves a host name.
        Specified by:
        resolve in interface FTPClient.HostnameResolver
        Parameters:
        hostname - the hostname to resolve.
        Returns:
        The resolved hostname.
        Throws:
        java.net.UnknownHostException - if the host is unknown.