public class MpUriBuilder extends ResteasyUriBuilderImpl
hierarchicalUri, opaqueUri
Constructor and Description |
---|
MpUriBuilder() |
MpUriBuilder(String host,
String scheme,
int port,
String userInfo,
String path,
String query,
String fragment,
String ssp,
String authority) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.UriBuilder |
clientQueryParam(String name,
Object... values)
Called by ClientRequest.getUri() to add a query parameter for
@QueryParam parameters. |
javax.ws.rs.core.UriBuilder |
clone() |
void |
setQueryParamStyle(org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle) |
javax.ws.rs.core.UriBuilder |
uri(String uriTemplate,
org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle) |
javax.ws.rs.core.UriBuilder |
uri(URI uri,
org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle) |
build, build, buildFromEncoded, buildFromEncodedMap, buildFromMap, buildFromMap, buildFromValues, buildUriFromMap, createUriParamMatcher, fragment, getAuthority, getFragment, getHost, getPath, getPathParamNamesInDeclarationOrder, getPort, getQuery, getScheme, getSsp, getUserInfo, host, matrixParam, parseHierarchicalUri, path, path, path, path, paths, port, queryParam, replaceMatrix, replaceMatrixParam, replaceParameter, replacePath, replacePathParameter, replaceQuery, replaceQueryNoEncoding, replaceQueryParam, replaceQueryStringParameter, resolveTemplate, resolveTemplate, resolveTemplateFromEncoded, resolveTemplates, resolveTemplates, resolveTemplatesFromEncoded, scheme, schemeSpecificPart, segment, substitutePathParam, toTemplate, uri, uri, uriFromCharSequence, uriTemplate, userInfo
compare, fromTemplate, relativize
public void setQueryParamStyle(org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle)
public javax.ws.rs.core.UriBuilder clone()
clone
in class ResteasyUriBuilderImpl
public javax.ws.rs.core.UriBuilder clientQueryParam(String name, Object... values) throws IllegalArgumentException
ResteasyUriBuilderImpl
@QueryParam
parameters. We do not use UriBuilder.queryParam()
because
@QueryParam
parameters).
%
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 a
QueryParam
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).
clientQueryParam
in class ResteasyUriBuilderImpl
name
- the name of the query parameter.values
- the value(s) of the query parameter.IllegalArgumentException
public javax.ws.rs.core.UriBuilder uri(String uriTemplate, org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle) throws IllegalArgumentException
IllegalArgumentException
public javax.ws.rs.core.UriBuilder uri(URI uri, org.eclipse.microprofile.rest.client.ext.QueryParamStyle queryParamStyle) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2021 JBoss by Red Hat. All rights reserved.