Package org.apache.cxf.jaxrs.impl
Class UriBuilderImpl
java.lang.Object
jakarta.ws.rs.core.UriBuilder
org.apache.cxf.jaxrs.impl.UriBuilderImpl
- All Implemented Interfaces:
Cloneable
Implements the
UriBuilder
abstract class. A few notes with respect to CXF specifics:
- it uses standard
URI
internally, so it does not conform to RFC-3986 whichUriBuilder
mandates - it encodes URI components if it encounters '%XX' pattern within name (if applicable) or value (those are treated as partially encoded) </ul
-
Constructor Summary
ConstructorDescriptionCreates builder with empty URI.UriBuilderImpl
(URI uri) Creates builder initialized with given URI.UriBuilderImpl
(Map<String, Object> properties) Creates builder with empty URI and properties -
Method Summary
Modifier and TypeMethodDescriptionbuildFromEncoded
(Object... values) buildFromEncodedMap
(Map<String, ?> map) buildFromMap
(Map<String, ?> map) buildFromMap
(Map<String, ?> map, boolean encodePathSlash) jakarta.ws.rs.core.UriBuilder
clone()
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
matrixParam
(String name, Object... values) jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
port
(int thePort) jakarta.ws.rs.core.UriBuilder
queryParam
(String name, Object... values) jakarta.ws.rs.core.UriBuilder
replaceMatrix
(String matrixValues) jakarta.ws.rs.core.UriBuilder
replaceMatrixParam
(String name, Object... values) jakarta.ws.rs.core.UriBuilder
replacePath
(String path) jakarta.ws.rs.core.UriBuilder
replaceQuery
(String queryValue) jakarta.ws.rs.core.UriBuilder
replaceQueryParam
(String name, Object... values) jakarta.ws.rs.core.UriBuilder
resolveTemplate
(String name, Object value) jakarta.ws.rs.core.UriBuilder
resolveTemplate
(String name, Object value, boolean encodePathSlash) jakarta.ws.rs.core.UriBuilder
resolveTemplateFromEncoded
(String name, Object value) jakarta.ws.rs.core.UriBuilder
resolveTemplates
(Map<String, Object> values) jakarta.ws.rs.core.UriBuilder
resolveTemplates
(Map<String, Object> values, boolean encodePathSlash) jakarta.ws.rs.core.UriBuilder
resolveTemplatesFromEncoded
(Map<String, Object> values) jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
schemeSpecificPart
(String ssp) jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
uriAsTemplate
(String uri) jakarta.ws.rs.core.UriBuilder
Methods inherited from class jakarta.ws.rs.core.UriBuilder
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, newInstance
-
Constructor Details
-
UriBuilderImpl
public UriBuilderImpl()Creates builder with empty URI. -
UriBuilderImpl
Creates builder with empty URI and properties -
UriBuilderImpl
Creates builder initialized with given URI.- Parameters:
uri
- initial value for builder- Throws:
IllegalArgumentException
- when uri is null
-
-
Method Details
-
build
public URI build(Object... values) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException - Specified by:
build
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
buildFromEncoded
public URI buildFromEncoded(Object... values) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException - Specified by:
buildFromEncoded
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
buildFromMap
public URI buildFromMap(Map<String, ?> map) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException- Specified by:
buildFromMap
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
buildFromEncodedMap
public URI buildFromEncodedMap(Map<String, ?> map) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException- Specified by:
buildFromEncodedMap
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
clone
public jakarta.ws.rs.core.UriBuilder clone()- Specified by:
clone
in classjakarta.ws.rs.core.UriBuilder
-
fragment
- Specified by:
fragment
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
host
- Specified by:
host
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
path
- Specified by:
path
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
path
public jakarta.ws.rs.core.UriBuilder path(Class resource, String method) throws IllegalArgumentException - Specified by:
path
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
path
- Specified by:
path
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
path
- Specified by:
path
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
port
- Specified by:
port
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
scheme
- Specified by:
scheme
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
schemeSpecificPart
- Specified by:
schemeSpecificPart
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
uri
- Specified by:
uri
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
userInfo
- Specified by:
userInfo
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
matrixParam
public jakarta.ws.rs.core.UriBuilder matrixParam(String name, Object... values) throws IllegalArgumentException - Specified by:
matrixParam
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
queryParam
public jakarta.ws.rs.core.UriBuilder queryParam(String name, Object... values) throws IllegalArgumentException - Specified by:
queryParam
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
replaceMatrix
public jakarta.ws.rs.core.UriBuilder replaceMatrix(String matrixValues) throws IllegalArgumentException - Specified by:
replaceMatrix
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
replaceMatrixParam
public jakarta.ws.rs.core.UriBuilder replaceMatrixParam(String name, Object... values) throws IllegalArgumentException - Specified by:
replaceMatrixParam
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
replacePath
- Specified by:
replacePath
in classjakarta.ws.rs.core.UriBuilder
-
replaceQuery
public jakarta.ws.rs.core.UriBuilder replaceQuery(String queryValue) throws IllegalArgumentException - Specified by:
replaceQuery
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
replaceQueryParam
public jakarta.ws.rs.core.UriBuilder replaceQueryParam(String name, Object... values) throws IllegalArgumentException - Specified by:
replaceQueryParam
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
segment
- Specified by:
segment
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
uri
- Specified by:
uri
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
uriAsTemplate
-
build
public URI build(Object[] vars, boolean encodePathSlash) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException - Specified by:
build
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
buildFromMap
public URI buildFromMap(Map<String, ?> map, boolean encodePathSlash) throws IllegalArgumentException, jakarta.ws.rs.core.UriBuilderException- Specified by:
buildFromMap
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
jakarta.ws.rs.core.UriBuilderException
-
toTemplate
- Specified by:
toTemplate
in classjakarta.ws.rs.core.UriBuilder
-
resolveTemplate
public jakarta.ws.rs.core.UriBuilder resolveTemplate(String name, Object value) throws IllegalArgumentException - Specified by:
resolveTemplate
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplate
public jakarta.ws.rs.core.UriBuilder resolveTemplate(String name, Object value, boolean encodePathSlash) throws IllegalArgumentException - Specified by:
resolveTemplate
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplates
public jakarta.ws.rs.core.UriBuilder resolveTemplates(Map<String, Object> values) throws IllegalArgumentException- Specified by:
resolveTemplates
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplates
public jakarta.ws.rs.core.UriBuilder resolveTemplates(Map<String, Object> values, boolean encodePathSlash) throws IllegalArgumentException- Specified by:
resolveTemplates
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplateFromEncoded
public jakarta.ws.rs.core.UriBuilder resolveTemplateFromEncoded(String name, Object value) throws IllegalArgumentException - Specified by:
resolveTemplateFromEncoded
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-
resolveTemplatesFromEncoded
public jakarta.ws.rs.core.UriBuilder resolveTemplatesFromEncoded(Map<String, Object> values) throws IllegalArgumentException- Specified by:
resolveTemplatesFromEncoded
in classjakarta.ws.rs.core.UriBuilder
- Throws:
IllegalArgumentException
-