Class HostFileNameParser.Authority

java.lang.Object
org.apache.commons.vfs2.provider.HostFileNameParser.Authority
Enclosing class:
HostFileNameParser

protected static class HostFileNameParser.Authority extends Object
Parsed authority info (scheme, hostname, username/password, port).
  • Constructor Details Link icon

    • Authority Link icon

      public Authority()
      Constructs a new instance.
  • Method Details Link icon

    • getHostName Link icon

      public String getHostName()
      Gets the host name.
      Returns:
      the host name.
      Since:
      2.0
    • getPassword Link icon

      public String getPassword()
      Gets the user password.
      Returns:
      the password or null.
      Since:
      2.0
    • getPort Link icon

      public int getPort()
      Gets the port.
      Returns:
      the port or -1.
      Since:
      2.0
    • getScheme Link icon

      public String getScheme()
      Gets the connection schema.
      Returns:
      the connection scheme.
      Since:
      2.0
    • getUserName Link icon

      public String getUserName()
      Gets the user name.
      Returns:
      the user name or null.
      Since:
      2.0
    • setHostName Link icon

      public void setHostName(String hostName)
      Sets the host name.
      Parameters:
      hostName - the host name.
      Since:
      2.0
    • setPassword Link icon

      public void setPassword(String password)
      Sets the user password.
      Parameters:
      password - the user password.
      Since:
      2.0
    • setPort Link icon

      public void setPort(int port)
      Sets the connection port.
      Parameters:
      port - the port number or -1.
      Since:
      2.0
    • setScheme Link icon

      public void setScheme(String scheme)
      Sets the connection schema.
      Parameters:
      scheme - the connection scheme.
      Since:
      2.0
    • setUserName Link icon

      public void setUserName(String userName)
      Sets the user name.
      Parameters:
      userName - the user name.
      Since:
      2.0