Package org.somda.sdc.dpws.http
Class HttpUriBuilder
java.lang.Object
org.somda.sdc.dpws.http.HttpUriBuilder
Helper class to build valid HTTP(S) URIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSecuredUri(String host, int port) Creates an HTTPS URI with given host an port.Creates an HTTP URI with given host and port.Creates an URI based on the given data.
-
Constructor Details
-
HttpUriBuilder
public HttpUriBuilder()
-
-
Method Details
-
buildUri
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
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
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.
-