Class HttpUriBuilder

  • All Implemented Interfaces:

    
    public class HttpUriBuilder
    
                        

    Helper class to build valid HTTP(S) URIs.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpUriBuilder()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String buildUri(String scheme, String host, int port) Creates an URI based on the given data.
      String buildUri(String host, int port) Creates an HTTP URI with given host and port.
      String buildSecuredUri(String host, int port) Creates an HTTPS URI with given host an port.
      • Methods inherited from class java.lang.Object

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

      • HttpUriBuilder

        HttpUriBuilder()
    • Method Detail

      • buildUri

         String buildUri(String scheme, String host, int port)

        Creates an URI based on the given data.

        Parameters:
        scheme - the scheme to insert into the URI.
        host - the host to insert into the URI.
        port - the port to insert into the URI.
        Returns:

        a URI as string.

      • buildUri

         String buildUri(String host, int port)

        Creates an HTTP URI with given host and port.

        Parameters:
        host - the host to insert into the URI.
        port - the port to insert into the URI.
        Returns:

        a URI as string.

      • buildSecuredUri

         String buildSecuredUri(String host, int port)

        Creates an HTTPS URI with given host an port.

        Parameters:
        host - the host to insert into the URI.
        port - the port to insert into the URI.
        Returns:

        a URI as string.