Package org.somda.sdc.dpws.http
Class HttpUriBuilder
-
- All Implemented Interfaces:
public class HttpUriBuilderHelper class to build valid HTTP(S) URIs.
-
-
Constructor Summary
Constructors Constructor Description HttpUriBuilder()
-
Method Summary
Modifier and Type Method Description StringbuildUri(String scheme, String host, int port)Creates an URI based on the given data. StringbuildUri(String host, int port)Creates an HTTP URI with given host and port. StringbuildSecuredUri(String host, int port)Creates an HTTPS URI with given host an port. -
-
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.
-
-
-
-