public class JerseyUriBuilder extends UriBuilder
UriBuilder
.Constructor and Description |
---|
JerseyUriBuilder()
Create new implementation of
UriBuilder . |
fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, newInstance
public JerseyUriBuilder()
UriBuilder
.public JerseyUriBuilder clone()
clone
in class UriBuilder
public JerseyUriBuilder uri(URI uri)
uri
in class UriBuilder
public JerseyUriBuilder uri(String uriTemplate)
uri
in class UriBuilder
public JerseyUriBuilder scheme(String scheme)
scheme
in class UriBuilder
public JerseyUriBuilder schemeSpecificPart(String ssp)
schemeSpecificPart
in class UriBuilder
public JerseyUriBuilder userInfo(String ui)
userInfo
in class UriBuilder
public JerseyUriBuilder host(String host)
host
in class UriBuilder
public JerseyUriBuilder port(int port)
port
in class UriBuilder
public JerseyUriBuilder replacePath(String path)
replacePath
in class UriBuilder
public JerseyUriBuilder path(String path)
path
in class UriBuilder
public UriBuilder path(Class resource) throws IllegalArgumentException
path
in class UriBuilder
IllegalArgumentException
public JerseyUriBuilder path(Class resource, String methodName)
path
in class UriBuilder
public JerseyUriBuilder path(Method method)
path
in class UriBuilder
public JerseyUriBuilder segment(String... segments) throws IllegalArgumentException
segment
in class UriBuilder
IllegalArgumentException
public JerseyUriBuilder replaceMatrix(String matrix)
replaceMatrix
in class UriBuilder
public JerseyUriBuilder matrixParam(String name, Object... values)
matrixParam
in class UriBuilder
public JerseyUriBuilder replaceMatrixParam(String name, Object... values)
replaceMatrixParam
in class UriBuilder
public JerseyUriBuilder replaceQuery(String query)
replaceQuery
in class UriBuilder
public JerseyUriBuilder queryParam(String name, Object... values)
queryParam
in class UriBuilder
public JerseyUriBuilder setQueryParamStyle(JerseyQueryParamStyle queryParamStyle)
public JerseyUriBuilder replaceQueryParam(String name, Object... values)
replaceQueryParam
in class UriBuilder
public JerseyUriBuilder resolveTemplate(String name, Object value) throws IllegalArgumentException
resolveTemplate
in class UriBuilder
IllegalArgumentException
public JerseyUriBuilder resolveTemplate(String name, Object value, boolean encodeSlashInPath)
resolveTemplate
in class UriBuilder
public JerseyUriBuilder resolveTemplateFromEncoded(String name, Object value)
resolveTemplateFromEncoded
in class UriBuilder
public JerseyUriBuilder resolveTemplates(Map<String,Object> templateValues) throws IllegalArgumentException
resolveTemplates
in class UriBuilder
IllegalArgumentException
public JerseyUriBuilder resolveTemplates(Map<String,Object> templateValues, boolean encodeSlashInPath) throws IllegalArgumentException
resolveTemplates
in class UriBuilder
IllegalArgumentException
public JerseyUriBuilder resolveTemplatesFromEncoded(Map<String,Object> templateValues)
resolveTemplatesFromEncoded
in class UriBuilder
public JerseyUriBuilder fragment(String fragment)
fragment
in class UriBuilder
public URI buildFromMap(Map<String,?> values)
buildFromMap
in class UriBuilder
public URI buildFromMap(Map<String,?> values, boolean encodeSlashInPath)
buildFromMap
in class UriBuilder
public URI buildFromEncodedMap(Map<String,?> values) throws IllegalArgumentException, UriBuilderException
buildFromEncodedMap
in class UriBuilder
IllegalArgumentException
UriBuilderException
public URI build(Object... values)
build
in class UriBuilder
public URI build(Object[] values, boolean encodeSlashInPath)
build
in class UriBuilder
public URI buildFromEncoded(Object... values)
buildFromEncoded
in class UriBuilder
public String toTemplate()
toTemplate
in class UriBuilder
public boolean isAbsolute()
UriBuilder
is absolute.
A URI is absolute if, and only if, it has a scheme component.true
if, and only if, the URI represented by this UriBuilder
is absolute.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.