Class ResteasyUriBuilder
java.lang.Object
jakarta.ws.rs.core.UriBuilder
org.jboss.resteasy.spi.ResteasyUriBuilder
- Direct Known Subclasses:
ResteasyUriBuilderImpl
public abstract class ResteasyUriBuilder
extends jakarta.ws.rs.core.UriBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract jakarta.ws.rs.core.UriBuilder
clientQueryParam
(String name, Object... values) Called by ClientRequest.getUri() to add a query parameter for@QueryParam
parameters.abstract jakarta.ws.rs.core.UriBuilder
clone()
static boolean
static ResteasyUriBuilder
fromTemplate
(String uriTemplate) You may put path parameters anywhere within the uriTemplate except port.abstract String
abstract String
getHost()
abstract String
getPath()
Return a unique order list of path params.abstract int
getPort()
abstract String
getQuery()
abstract String
abstract String
static URI
relativize
(URI from, URI to) abstract jakarta.ws.rs.core.UriBuilder
substitutePathParam
(String name, Object value, boolean isEncoded) Only replace path params in path of URI.abstract jakarta.ws.rs.core.UriBuilder
uriFromCharSequence
(CharSequence uriTemplate) abstract jakarta.ws.rs.core.UriBuilder
uriTemplate
(CharSequence uriTemplate) You may put path parameters anywhere within the uriTemplate except port.Methods inherited from class jakarta.ws.rs.core.UriBuilder
build, build, buildFromEncoded, buildFromEncodedMap, buildFromMap, buildFromMap, fragment, fromLink, fromMethod, fromPath, fromResource, fromUri, fromUri, host, matrixParam, newInstance, path, path, path, path, port, queryParam, replaceMatrix, replaceMatrixParam, replacePath, replaceQuery, replaceQueryParam, resolveTemplate, resolveTemplate, resolveTemplateFromEncoded, resolveTemplates, resolveTemplates, resolveTemplatesFromEncoded, scheme, schemeSpecificPart, segment, toTemplate, uri, uri, userInfo
-
Field Details
-
opaqueUri
-
hierarchicalUri
-
-
Constructor Details
-
ResteasyUriBuilder
public ResteasyUriBuilder()
-
-
Method Details
-
clone
public abstract jakarta.ws.rs.core.UriBuilder clone()- Specified by:
clone
in classjakarta.ws.rs.core.UriBuilder
-
compare
-
relativize
-
fromTemplate
You may put path parameters anywhere within the uriTemplate except port.- Parameters:
uriTemplate
- uri template- Returns:
- uri builder
-
uriTemplate
You may put path parameters anywhere within the uriTemplate except port.- Parameters:
uriTemplate
- uri template- Returns:
- uri builder
-
uriFromCharSequence
public abstract jakarta.ws.rs.core.UriBuilder uriFromCharSequence(CharSequence uriTemplate) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
substitutePathParam
-
getPathParamNamesInDeclarationOrder
-
clientQueryParam
public abstract jakarta.ws.rs.core.UriBuilder clientQueryParam(String name, Object... values) throws IllegalArgumentException Called by ClientRequest.getUri() to add a query parameter for@QueryParam
parameters. We do not use UriBuilder.queryParam() because- queryParam() supports URI template processing and this method must
always encode braces (for parameter substitution is not possible for
@QueryParam
parameters). - queryParam() supports "contextual URI encoding" (i.e., it does not
encode
%
characters that are followed by two hex characters). The JavaDoc for@QueryParam.value()
explicitly states that the value is specified in decoded format and that "any percent encoded literals within the value will not be decoded and will instead be treated as literal text". This means that it is an explicit bug to perform contextual URI encoding of this method's name parameter; hence, we must always encode said parameter. This method also foregoes contextual URI encoding on this method's values parameter because it represents arbitrary data passed to aQueryParam
parameter of a client proxy (since the client proxy is nothing more than a transport layer, it should not be "interpreting" such data; instead, it should faithfully transmit this data over the wire).
- Parameters:
name
- the name of the query parameter.values
- the value(s) of the query parameter.- Returns:
- Returns this instance to allow call chaining.
- Throws:
IllegalArgumentException
- queryParam() supports URI template processing and this method must
always encode braces (for parameter substitution is not possible for
-
getHost
-
getScheme
-
getPort
public abstract int getPort() -
getUserInfo
-
getPath
-
getQuery
-
getFragment
-