Class ServerAddressBuilder


  • public class ServerAddressBuilder
    extends java.lang.Object
    The purpose of this class is for building a server address object.
    • Constructor Detail

      • ServerAddressBuilder

        public ServerAddressBuilder()
        Instantiates an empty server address builder.
      • ServerAddressBuilder

        public ServerAddressBuilder​(java.lang.String serverAddress)
                             throws java.net.URISyntaxException
        Instantiates a new server address builder from a string.
        Parameters:
        serverAddress - the server address
        Throws:
        java.net.URISyntaxException - on error
    • Method Detail

      • build

        public ServerAddress build()
        Builds the server address.
        Returns:
        the server address
      • setProtocol

        public void setProtocol​(IServerAddress.Protocol protocol)
        Sets the protocol.
        Parameters:
        protocol - the protocol
      • getHost

        public java.lang.String getHost()
        Gets the host.
        Returns:
        the host
      • setHost

        public void setHost​(java.lang.String host)
        Sets the host.
        Parameters:
        host - the host
      • getPort

        public int getPort()
        Gets the port.
        Returns:
        the port
      • setPort

        public void setPort​(int port)
        Sets the port.
        Parameters:
        port - the port
      • getQuery

        public java.lang.String getQuery()
        Gets the query.
        Returns:
        the query
      • getProperties

        public java.util.Properties getProperties()
        Gets the properties (parsed from the query string).
        Returns:
        the properties
      • getUri

        public java.lang.String getUri()
        Gets the uri.
        Returns:
        the uri
      • getRsh

        public java.lang.String getRsh()
        Gets the rsh command.
        Returns:
        the rsh command
      • setRsh

        public void setRsh​(java.lang.String rsh)
        Sets the rsh command.
        Parameters:
        rsh - the rsh command