Class JerseyUriBuilder
java.lang.Object
jakarta.ws.rs.core.UriBuilder
org.glassfish.jersey.uri.internal.JerseyUriBuilder
A Jersey implementation of
UriBuilder
.- Author:
- Paul Sandoz, Martin Matula, Miroslav Fuksa, Vetle Leinonen-Roeim (vetle at roeim.net)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildFromEncoded
(Object... values) buildFromEncodedMap
(Map<String, ?> values) buildFromMap
(Map<String, ?> values) buildFromMap
(Map<String, ?> values, boolean encodeSlashInPath) clone()
boolean
Check whether or not the URI represented by thisUriBuilder
is absolute.matrixParam
(String name, Object... values) port
(int port) queryParam
(String name, Object... values) replaceMatrix
(String matrix) replaceMatrixParam
(String name, Object... values) replacePath
(String path) replaceQuery
(String query) replaceQueryParam
(String name, Object... values) resolveTemplate
(String name, Object value) resolveTemplate
(String name, Object value, boolean encodeSlashInPath) resolveTemplateFromEncoded
(String name, Object value) resolveTemplates
(Map<String, Object> templateValues) resolveTemplates
(Map<String, Object> templateValues, boolean encodeSlashInPath) resolveTemplatesFromEncoded
(Map<String, Object> templateValues) schemeSpecificPart
(String ssp) setQueryParamStyle
(JerseyQueryParamStyle queryParamStyle) toString()
Methods inherited from class jakarta.ws.rs.core.UriBuilder
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, newInstance
-
Constructor Details
-
JerseyUriBuilder
public JerseyUriBuilder()Create new implementation ofUriBuilder
.
-
-
Method Details
-
clone
- Specified by:
clone
in classUriBuilder
-
uri
- Specified by:
uri
in classUriBuilder
-
uri
- Specified by:
uri
in classUriBuilder
-
scheme
- Specified by:
scheme
in classUriBuilder
-
schemeSpecificPart
- Specified by:
schemeSpecificPart
in classUriBuilder
-
userInfo
- Specified by:
userInfo
in classUriBuilder
-
host
- Specified by:
host
in classUriBuilder
-
port
- Specified by:
port
in classUriBuilder
-
replacePath
- Specified by:
replacePath
in classUriBuilder
-
path
- Specified by:
path
in classUriBuilder
-
path
- Specified by:
path
in classUriBuilder
- Throws:
IllegalArgumentException
-
path
- Specified by:
path
in classUriBuilder
-
path
- Specified by:
path
in classUriBuilder
-
segment
- Specified by:
segment
in classUriBuilder
- Throws:
IllegalArgumentException
-
replaceMatrix
- Specified by:
replaceMatrix
in classUriBuilder
-
matrixParam
- Specified by:
matrixParam
in classUriBuilder
-
replaceMatrixParam
- Specified by:
replaceMatrixParam
in classUriBuilder
-
replaceQuery
- Specified by:
replaceQuery
in classUriBuilder
-
queryParam
- Specified by:
queryParam
in classUriBuilder
-
setQueryParamStyle
-
replaceQueryParam
- Specified by:
replaceQueryParam
in classUriBuilder
-
resolveTemplate
- Specified by:
resolveTemplate
in classUriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplate
- Specified by:
resolveTemplate
in classUriBuilder
-
resolveTemplateFromEncoded
- Specified by:
resolveTemplateFromEncoded
in classUriBuilder
-
resolveTemplates
public JerseyUriBuilder resolveTemplates(Map<String, Object> templateValues) throws IllegalArgumentException- Specified by:
resolveTemplates
in classUriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplates
public JerseyUriBuilder resolveTemplates(Map<String, Object> templateValues, boolean encodeSlashInPath) throws IllegalArgumentException- Specified by:
resolveTemplates
in classUriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplatesFromEncoded
- Specified by:
resolveTemplatesFromEncoded
in classUriBuilder
-
fragment
- Specified by:
fragment
in classUriBuilder
-
buildFromMap
- Specified by:
buildFromMap
in classUriBuilder
-
buildFromMap
- Specified by:
buildFromMap
in classUriBuilder
-
buildFromEncodedMap
public URI buildFromEncodedMap(Map<String, ?> values) throws IllegalArgumentException, UriBuilderException- Specified by:
buildFromEncodedMap
in classUriBuilder
- Throws:
IllegalArgumentException
UriBuilderException
-
build
- Specified by:
build
in classUriBuilder
-
build
- Specified by:
build
in classUriBuilder
-
buildFromEncoded
- Specified by:
buildFromEncoded
in classUriBuilder
-
toTemplate
- Specified by:
toTemplate
in classUriBuilder
-
toString
-
isAbsolute
public boolean isAbsolute()Check whether or not the URI represented by thisUriBuilder
is absolute. A URI is absolute if, and only if, it has a scheme component.- Returns:
true
if, and only if, the URI represented by thisUriBuilder
is absolute.- Since:
- 2.7
-