Interface URIBuilder
- All Superinterfaces:
RelativeURIBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondefault URIBuilderaddParameter(String parameterName, String parameterValue) Appends the specified query parameter to the URI created by this builder.default URIBuilderaddParameters(Map<String, String> parameters) Appends the specified query parameters to the URI created by this builder.default URIBuilderAppends the specified path to the URI created by this builder.Appends the specified path and path parameters to the URI created by this builder.static URIBuilderof()Returns a URI builder using default scheme ports.static URIBuilderof(ToIntFunction<String> defaultPort) Returns a URI builder using the specified default port function.setFragment(String fragment) Specifies the fragment (e.g. anchor) of the URI created by this builder.Specifies the host of the URI created by this builder.setPort(int port) Specifies the port of the URI created by this builder.Specifies the scheme of URI created by this builder.setUserInfo(String userInfo) Specifies the user info of URI created by this builder.Methods inherited from interface RelativeURIBuilder
build
-
Method Details
-
setScheme
Specifies the scheme of URI created by this builder. If unspecified, "http" is used.- Parameters:
scheme- a URI schema- Returns:
- a reference to this builder
-
setUserInfo
Specifies the user info of URI created by this builder.- Parameters:
userInfo- user info- Returns:
- a reference to this builder
-
setHost
Specifies the host of the URI created by this builder. If unspecified, the loopback address of the host machine is used.- Parameters:
host- a URI host- Returns:
- a reference to this builder
-
setPort
Specifies the port of the URI created by this builder. If unspecified, the URI will use the default port for the specified scheme.- Parameters:
port- a URI port- Returns:
- a reference to this builder
-
addPath
Description copied from interface:RelativeURIBuilderAppends the specified path to the URI created by this builder.- Specified by:
addPathin interfaceRelativeURIBuilder- Parameters:
path- a URI path- Returns:
- a reference to this builder
-
addPath
Description copied from interface:RelativeURIBuilderAppends the specified path and path parameters to the URI created by this builder.- Specified by:
addPathin interfaceRelativeURIBuilder- Parameters:
path- a URI pathparameters- the path parameters for the specified path- Returns:
- a reference to this builder
-
addParameter
Description copied from interface:RelativeURIBuilderAppends the specified query parameter to the URI created by this builder.- Specified by:
addParameterin interfaceRelativeURIBuilder- Parameters:
parameterName- a query parameter nameparameterValue- a query parameter name- Returns:
- a reference to this builder
-
addParameters
Description copied from interface:RelativeURIBuilderAppends the specified query parameters to the URI created by this builder.- Specified by:
addParametersin interfaceRelativeURIBuilder- Parameters:
parameters- a map of query parameters- Returns:
- a reference to this builder
-
setFragment
Description copied from interface:RelativeURIBuilderSpecifies the fragment (e.g. anchor) of the URI created by this builder.- Specified by:
setFragmentin interfaceRelativeURIBuilder- Parameters:
fragment- a URI fragment- Returns:
- a reference to this builder
-
of
Returns a URI builder using default scheme ports.- Returns:
- a URI builder using default scheme ports.
-
of
Returns a URI builder using the specified default port function.- Parameters:
defaultPort- a function that determines the default port for a given scheme.- Returns:
- a URI builder using the specified default port function.
-