Interface ClientConfiguration

    • Method Detail

      • getServerHost

        java.lang.String getServerHost()
        Must return the value of a 'serverHost' attribute
        Returns:
        the server host value
      • getServerPort

        int getServerPort()
        Must return the value of a 'serverPort' attribute
        Returns:
        the server port value
      • setServerPort

        ClientConfiguration setServerPort​(int serverPort)
        Parameters:
        serverPort - the server port
        Returns:
        this
        Throws:
        java.lang.IllegalArgumentException - if serverPort <= 0
      • setServerHost

        ClientConfiguration setServerHost​(java.lang.String serverHost)
        Parameters:
        serverHost - the server host
        Returns:
        this
        Throws:
        java.lang.IllegalArgumentException - if serverHost is null or empty
      • isSecure

        boolean isSecure()
        Must return the value of a 'secure' attribute
        Returns:
        secure = false : HTTP, secure = true : HTTPS