Package com.inrupt.client.util
Class URIBuilder
java.lang.Object
com.inrupt.client.util.URIBuilder
A utility for building
URI objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a URI.Set a fragment value for a URI.static URIBuildernewBuilder(URI uri) Create a new URI builder from an existing URI.Append a path segment to a URI.queryParam(String param, String value) Set a query parameter for a URI.
-
Method Details
-
newBuilder
Create a new URI builder from an existing URI.- Parameters:
uri- the URI- Returns:
- the builder
-
path
Append a path segment to a URI.- Parameters:
path- the path segment- Returns:
- this builder
-
queryParam
Set a query parameter for a URI.- Parameters:
param- the parameter namevalue- the parameter value- Returns:
- this builder
-
fragment
Set a fragment value for a URI.- Parameters:
fragment- the fragment value- Returns:
- this builder
-
build
Build a URI.- Returns:
- the newly constructed URI
-