Interface HttpServerLocation

    • Field Detail

      • PROPERTY_CLUSTER_HOST_NAME

        static final java.lang.String PROPERTY_CLUSTER_HOST_NAME
        Name of Property for the cluster host name.
        See Also:
        Constant Field Values
      • PROPERTY_CLUSTER_HTTP_PORT

        static final java.lang.String PROPERTY_CLUSTER_HTTP_PORT
        Name of Property for the cluster HTTP port.
        See Also:
        Constant Field Values
      • PROPERTY_CLUSTER_HTTPS_PORT

        static final java.lang.String PROPERTY_CLUSTER_HTTPS_PORT
        Name of Property for the cluster HTTPS port.
        See Also:
        Constant Field Values
    • Method Detail

      • getDomain

        java.lang.String getDomain()

        Obtains the domain for the server.

        This is as the client will see the server.

        Returns:
        Domain for the server.
      • getHttpPort

        int getHttpPort()

        Obtains the HTTP port.

        This is as the client will see the server.

        Returns:
        HTTP port.
      • getHttpsPort

        int getHttpsPort()

        Obtains the HTTPS port.

        This is as the client will see the server.

        Returns:
        HTTPS port.
      • getClusterHostName

        java.lang.String getClusterHostName()
        Obtains the name of the host for the server within the cluster. This name should be understood by all nodes within the cluster.
        Returns:
        Name of the host within the cluster.
      • getClusterHttpPort

        int getClusterHttpPort()
        The cluster may be behind a load balancer and the server may be running on a different port than expected by the client.
        Returns:
        Actual port on the cluster host the server is running on.
      • getClusterHttpsPort

        int getClusterHttpsPort()
        The cluster may be behind a load balancer and the server may be running on a different port than expected by the client.
        Returns:
        Actual secure port on the cluster host the server is running on.
      • createClientUrl

        java.lang.String createClientUrl​(boolean isSecure,
                                         java.lang.String path)
        Creates the client URL to call the HttpServer.
        Parameters:
        isSecure - If secure URL.
        path - Path including query string and fragment.
        Returns:
        URL for the client to call on the HttpServer.