Class HostFileNameParser.Authority

  • Enclosing class:
    HostFileNameParser

    protected static class HostFileNameParser.Authority
    extends java.lang.Object
    Parsed authority info (scheme, hostname, username/password, port).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String hostName  
      private java.lang.String password  
      private int port  
      private java.lang.String scheme  
      private java.lang.String userName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Authority()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHostName()
      Gets the host name.
      java.lang.String getPassword()
      Gets the user password.
      int getPort()
      Gets the port.
      java.lang.String getScheme()
      Get the connection schema.
      java.lang.String getUserName()
      Gets the user name.
      void setHostName​(java.lang.String hostName)
      Sets the host name.
      void setPassword​(java.lang.String password)
      Sets the user password.
      void setPort​(int port)
      Sets the connection port.
      void setScheme​(java.lang.String scheme)
      Sets the connection schema.
      void setUserName​(java.lang.String userName)
      Sets the user name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hostName

        private java.lang.String hostName
      • password

        private java.lang.String password
      • port

        private int port
      • scheme

        private java.lang.String scheme
      • userName

        private java.lang.String userName
    • Constructor Detail

      • Authority

        protected Authority()
    • Method Detail

      • getHostName

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

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

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

        public java.lang.String getScheme()
        Get the connection schema.
        Returns:
        the connection scheme.
        Since:
        2.0
      • getUserName

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

        public void setHostName​(java.lang.String hostName)
        Sets the host name.
        Parameters:
        hostName - the host name.
        Since:
        2.0
      • setPassword

        public void setPassword​(java.lang.String password)
        Sets the user password.
        Parameters:
        password - the user password.
        Since:
        2.0
      • setPort

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

        public void setScheme​(java.lang.String scheme)
        Sets the connection schema.
        Parameters:
        scheme - the connection scheme.
        Since:
        2.0
      • setUserName

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