Package jcifs

Interface Address

  • All Known Subinterfaces:
    NetbiosAddress
    All Known Implementing Classes:
    NbtAddress, UniAddress

    public interface Address
    Interface for both netbios and internet addresses
    Author:
    mbechler
    • Method Detail

      • unwrap

        <T extends Address> T unwrap​(Class<T> type)
        Parameters:
        type -
        Returns:
        instance for type, null if the type cannot be unwrapped
      • getHostName

        String getHostName()
        Returns:
        the resolved host name, or the host address if it could not be resolved
      • getHostAddress

        String getHostAddress()
        Return the IP address as text such as "192.168.1.15".
        Returns:
        the ip address
      • firstCalledName

        String firstCalledName()
        Guess called name to try for session establishment. These methods are used by the smb package.
        Returns:
        guessed name
      • nextCalledName

        String nextCalledName​(CIFSContext tc)
        Guess next called name to try for session establishment. These methods are used by the smb package.
        Parameters:
        tc -
        Returns:
        guessed name