public class UriBuilderImpl extends javax.ws.rs.core.UriBuilder implements Cloneable
UriBuilder
abstract class. A few notes with respect to CXF specifics:
URI
internally, so it does not conform to
RFC-3986 which UriBuilder
mandatesConstructor and Description |
---|
UriBuilderImpl()
Creates builder with empty URI.
|
UriBuilderImpl(Map<String,Object> properties)
Creates builder with empty URI and properties
|
UriBuilderImpl(URI uri)
Creates builder initialized with given URI.
|
Modifier and Type | Method and Description |
---|---|
URI |
build(Object... values) |
URI |
build(Object[] vars,
boolean encodePathSlash) |
URI |
buildFromEncoded(Object... values) |
URI |
buildFromEncodedMap(Map<String,?> map) |
URI |
buildFromMap(Map<String,?> map) |
URI |
buildFromMap(Map<String,?> map,
boolean encodePathSlash) |
javax.ws.rs.core.UriBuilder |
clone() |
javax.ws.rs.core.UriBuilder |
fragment(String theFragment) |
javax.ws.rs.core.UriBuilder |
host(String theHost) |
javax.ws.rs.core.UriBuilder |
matrixParam(String name,
Object... values) |
javax.ws.rs.core.UriBuilder |
path(Class resource) |
javax.ws.rs.core.UriBuilder |
path(Class resource,
String method) |
javax.ws.rs.core.UriBuilder |
path(Method method) |
javax.ws.rs.core.UriBuilder |
path(String path) |
javax.ws.rs.core.UriBuilder |
port(int thePort) |
javax.ws.rs.core.UriBuilder |
queryParam(String name,
Object... values) |
javax.ws.rs.core.UriBuilder |
replaceMatrix(String matrixValues) |
javax.ws.rs.core.UriBuilder |
replaceMatrixParam(String name,
Object... values) |
javax.ws.rs.core.UriBuilder |
replacePath(String path) |
javax.ws.rs.core.UriBuilder |
replaceQuery(String queryValue) |
javax.ws.rs.core.UriBuilder |
replaceQueryParam(String name,
Object... values) |
javax.ws.rs.core.UriBuilder |
resolveTemplate(String name,
Object value) |
javax.ws.rs.core.UriBuilder |
resolveTemplate(String name,
Object value,
boolean encodePathSlash) |
javax.ws.rs.core.UriBuilder |
resolveTemplateFromEncoded(String name,
Object value) |
javax.ws.rs.core.UriBuilder |
resolveTemplates(Map<String,Object> values) |
javax.ws.rs.core.UriBuilder |
resolveTemplates(Map<String,Object> values,
boolean encodePathSlash) |
javax.ws.rs.core.UriBuilder |
resolveTemplatesFromEncoded(Map<String,Object> values) |
javax.ws.rs.core.UriBuilder |
scheme(String s) |
javax.ws.rs.core.UriBuilder |
schemeSpecificPart(String ssp) |
javax.ws.rs.core.UriBuilder |
segment(String... segments) |
String |
toTemplate() |
javax.ws.rs.core.UriBuilder |
uri(String uriTemplate) |
javax.ws.rs.core.UriBuilder |
uri(URI uri) |
javax.ws.rs.core.UriBuilder |
uriAsTemplate(String uri) |
javax.ws.rs.core.UriBuilder |
userInfo(String ui) |
public UriBuilderImpl()
public UriBuilderImpl(Map<String,Object> properties)
public UriBuilderImpl(URI uri) throws IllegalArgumentException
uri
- initial value for builderIllegalArgumentException
- when uri is nullpublic URI build(Object... values) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
build
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public URI buildFromEncoded(Object... values) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
buildFromEncoded
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public URI buildFromMap(Map<String,?> map) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
buildFromMap
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public URI buildFromEncodedMap(Map<String,?> map) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
buildFromEncodedMap
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public javax.ws.rs.core.UriBuilder clone()
clone
in class javax.ws.rs.core.UriBuilder
public javax.ws.rs.core.UriBuilder fragment(String theFragment) throws IllegalArgumentException
fragment
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder host(String theHost) throws IllegalArgumentException
host
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder path(Class resource) throws IllegalArgumentException
path
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder path(Class resource, String method) throws IllegalArgumentException
path
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder path(Method method) throws IllegalArgumentException
path
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder path(String path) throws IllegalArgumentException
path
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder port(int thePort) throws IllegalArgumentException
port
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder scheme(String s) throws IllegalArgumentException
scheme
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder schemeSpecificPart(String ssp) throws IllegalArgumentException
schemeSpecificPart
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder uri(URI uri) throws IllegalArgumentException
uri
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder userInfo(String ui) throws IllegalArgumentException
userInfo
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder matrixParam(String name, Object... values) throws IllegalArgumentException
matrixParam
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder queryParam(String name, Object... values) throws IllegalArgumentException
queryParam
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder replaceMatrix(String matrixValues) throws IllegalArgumentException
replaceMatrix
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder replaceMatrixParam(String name, Object... values) throws IllegalArgumentException
replaceMatrixParam
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder replacePath(String path)
replacePath
in class javax.ws.rs.core.UriBuilder
public javax.ws.rs.core.UriBuilder replaceQuery(String queryValue) throws IllegalArgumentException
replaceQuery
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder replaceQueryParam(String name, Object... values) throws IllegalArgumentException
replaceQueryParam
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder segment(String... segments) throws IllegalArgumentException
segment
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder uri(String uriTemplate) throws IllegalArgumentException
uri
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder uriAsTemplate(String uri)
public URI build(Object[] vars, boolean encodePathSlash) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
build
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public URI buildFromMap(Map<String,?> map, boolean encodePathSlash) throws IllegalArgumentException, javax.ws.rs.core.UriBuilderException
buildFromMap
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
javax.ws.rs.core.UriBuilderException
public String toTemplate()
toTemplate
in class javax.ws.rs.core.UriBuilder
public javax.ws.rs.core.UriBuilder resolveTemplate(String name, Object value) throws IllegalArgumentException
resolveTemplate
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder resolveTemplate(String name, Object value, boolean encodePathSlash) throws IllegalArgumentException
resolveTemplate
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder resolveTemplates(Map<String,Object> values) throws IllegalArgumentException
resolveTemplates
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder resolveTemplates(Map<String,Object> values, boolean encodePathSlash) throws IllegalArgumentException
resolveTemplates
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder resolveTemplateFromEncoded(String name, Object value) throws IllegalArgumentException
resolveTemplateFromEncoded
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
public javax.ws.rs.core.UriBuilder resolveTemplatesFromEncoded(Map<String,Object> values) throws IllegalArgumentException
resolveTemplatesFromEncoded
in class javax.ws.rs.core.UriBuilder
IllegalArgumentException
Apache CXF