Class ClientWebTarget
java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget
- All Implemented Interfaces:
jakarta.ws.rs.client.WebTarget
,jakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
,ResteasyWebTarget
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected ResteasyClient
protected ClientConfiguration
protected jakarta.ws.rs.core.UriBuilder
-
Constructor Summary
ModifierConstructorDescriptionClientWebTarget
(ResteasyClient client, jakarta.ws.rs.core.UriBuilder uriBuilder, ClientConfiguration configuration) ClientWebTarget
(ResteasyClient client, String uri, ClientConfiguration configuration) ClientWebTarget
(ResteasyClient client, URI uri, ClientConfiguration configuration) protected
ClientWebTarget
(ResteasyClient client, ClientConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected ClientInvocationBuilder
createClientInvocationBuilder
(ResteasyClient client, URI uri, ClientConfiguration configuration) protected <T> ProxyBuilder<T>
createProxyBuilder
(Class<T> proxyInterface, ClientWebTarget cwt) jakarta.ws.rs.core.Configuration
getUri()
jakarta.ws.rs.core.UriBuilder
matrixParam
(String name, Object... values) protected ClientWebTarget
newInstance
(ResteasyClient client, jakarta.ws.rs.core.UriBuilder uriBuilder, ClientConfiguration configuration) <T> T
<T> ProxyBuilder<T>
proxyBuilder
(Class<T> proxyInterface) queryParam
(String name, Object... values) queryParamNoTemplate
(String name, Object... values) Will encode any '{}' characters and not treat them as template parameters.queryParams
(jakarta.ws.rs.core.MultivaluedMap<String, Object> parameters) queryParamsNoTemplate
(jakarta.ws.rs.core.MultivaluedMap<String, Object> parameters) Will encode any '{}' characters and not treat them as template parameters.jakarta.ws.rs.client.Invocation.Builder
request()
jakarta.ws.rs.client.Invocation.Builder
request
(jakarta.ws.rs.core.MediaType... acceptedResponseTypes) jakarta.ws.rs.client.Invocation.Builder
resolveTemplate
(String name, Object value) resolveTemplate
(String name, Object value, boolean encodeSlashInPath) resolveTemplateFromEncoded
(String name, Object value) resolveTemplates
(Map<String, Object> templateValues) resolveTemplates
(Map<String, Object> templateValues, boolean encodeSlashInPath) resolveTemplatesFromEncoded
(Map<String, Object> templateValues) setChunked
(boolean chunked)
-
Field Details
-
client
-
uriBuilder
protected jakarta.ws.rs.core.UriBuilder uriBuilder -
configuration
-
chunked
protected boolean chunked
-
-
Constructor Details
-
ClientWebTarget
-
ClientWebTarget
public ClientWebTarget(ResteasyClient client, String uri, ClientConfiguration configuration) throws IllegalArgumentException, NullPointerException -
ClientWebTarget
public ClientWebTarget(ResteasyClient client, URI uri, ClientConfiguration configuration) throws NullPointerException - Throws:
NullPointerException
-
ClientWebTarget
public ClientWebTarget(ResteasyClient client, jakarta.ws.rs.core.UriBuilder uriBuilder, ClientConfiguration configuration) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceResteasyWebTarget
- Overrides:
clone
in classObject
-
getResteasyClient
- Specified by:
getResteasyClient
in interfaceResteasyWebTarget
-
proxy
- Specified by:
proxy
in interfaceResteasyWebTarget
-
proxyBuilder
- Specified by:
proxyBuilder
in interfaceResteasyWebTarget
-
createProxyBuilder
-
getUri
- Specified by:
getUri
in interfacejakarta.ws.rs.client.WebTarget
-
getUriBuilder
public jakarta.ws.rs.core.UriBuilder getUriBuilder()- Specified by:
getUriBuilder
in interfacejakarta.ws.rs.client.WebTarget
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration()- Specified by:
getConfiguration
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
-
path
- Specified by:
path
in interfaceResteasyWebTarget
- Specified by:
path
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
path
- Specified by:
path
in interfaceResteasyWebTarget
- Throws:
IllegalArgumentException
-
path
- Specified by:
path
in interfaceResteasyWebTarget
- Throws:
IllegalArgumentException
-
resolveTemplate
- Specified by:
resolveTemplate
in interfaceResteasyWebTarget
- Specified by:
resolveTemplate
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
resolveTemplates
public ResteasyWebTarget resolveTemplates(Map<String, Object> templateValues) throws NullPointerException- Specified by:
resolveTemplates
in interfaceResteasyWebTarget
- Specified by:
resolveTemplates
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
resolveTemplate
public ResteasyWebTarget resolveTemplate(String name, Object value, boolean encodeSlashInPath) throws NullPointerException - Specified by:
resolveTemplate
in interfaceResteasyWebTarget
- Specified by:
resolveTemplate
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
resolveTemplateFromEncoded
public ResteasyWebTarget resolveTemplateFromEncoded(String name, Object value) throws NullPointerException - Specified by:
resolveTemplateFromEncoded
in interfaceResteasyWebTarget
- Specified by:
resolveTemplateFromEncoded
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
resolveTemplatesFromEncoded
public ResteasyWebTarget resolveTemplatesFromEncoded(Map<String, Object> templateValues) throws NullPointerException- Specified by:
resolveTemplatesFromEncoded
in interfaceResteasyWebTarget
- Specified by:
resolveTemplatesFromEncoded
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
resolveTemplates
public ResteasyWebTarget resolveTemplates(Map<String, Object> templateValues, boolean encodeSlashInPath) throws NullPointerException- Specified by:
resolveTemplates
in interfaceResteasyWebTarget
- Specified by:
resolveTemplates
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
matrixParam
- Specified by:
matrixParam
in interfaceResteasyWebTarget
- Specified by:
matrixParam
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
queryParam
- Specified by:
queryParam
in interfaceResteasyWebTarget
- Specified by:
queryParam
in interfacejakarta.ws.rs.client.WebTarget
- Throws:
NullPointerException
-
queryParams
public ResteasyWebTarget queryParams(jakarta.ws.rs.core.MultivaluedMap<String, Object> parameters) throws IllegalArgumentException, NullPointerException- Specified by:
queryParams
in interfaceResteasyWebTarget
- Throws:
IllegalArgumentException
NullPointerException
-
queryParamNoTemplate
public ResteasyWebTarget queryParamNoTemplate(String name, Object... values) throws NullPointerException Description copied from interface:ResteasyWebTarget
Will encode any '{}' characters and not treat them as template parameters.- Specified by:
queryParamNoTemplate
in interfaceResteasyWebTarget
- Parameters:
name
- namevalues
- values- Returns:
- web resource target
- Throws:
NullPointerException
-
queryParamsNoTemplate
public ResteasyWebTarget queryParamsNoTemplate(jakarta.ws.rs.core.MultivaluedMap<String, Object> parameters) throws IllegalArgumentException, NullPointerExceptionDescription copied from interface:ResteasyWebTarget
Will encode any '{}' characters and not treat them as template parameters.- Specified by:
queryParamsNoTemplate
in interfaceResteasyWebTarget
- Parameters:
parameters
- parameters map- Returns:
- web resource target
- Throws:
IllegalArgumentException
NullPointerException
-
newInstance
protected ClientWebTarget newInstance(ResteasyClient client, jakarta.ws.rs.core.UriBuilder uriBuilder, ClientConfiguration configuration) -
request
public jakarta.ws.rs.client.Invocation.Builder request()- Specified by:
request
in interfacejakarta.ws.rs.client.WebTarget
-
request
- Specified by:
request
in interfacejakarta.ws.rs.client.WebTarget
-
request
public jakarta.ws.rs.client.Invocation.Builder request(jakarta.ws.rs.core.MediaType... acceptedResponseTypes) - Specified by:
request
in interfacejakarta.ws.rs.client.WebTarget
-
createClientInvocationBuilder
protected ClientInvocationBuilder createClientInvocationBuilder(ResteasyClient client, URI uri, ClientConfiguration configuration) -
property
- Specified by:
property
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
property
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
register
- Specified by:
register
in interfacejakarta.ws.rs.core.Configurable<jakarta.ws.rs.client.WebTarget>
- Specified by:
register
in interfaceResteasyWebTarget
-
setChunked
- Specified by:
setChunked
in interfaceResteasyWebTarget
-