Class ClientInvocationBuilder
- java.lang.Object
-
- org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder
-
- All Implemented Interfaces:
jakarta.ws.rs.client.Invocation.Builder
,jakarta.ws.rs.client.SyncInvoker
public class ClientInvocationBuilder extends Object implements jakarta.ws.rs.client.Invocation.Builder
- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Alessio Soldano
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientInvocation
invocation
-
Constructor Summary
Constructors Constructor Description ClientInvocationBuilder(ResteasyClient client, URI uri, ClientConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.client.Invocation.Builder
accept(jakarta.ws.rs.core.MediaType... mediaTypes)
jakarta.ws.rs.client.Invocation.Builder
accept(String... mediaTypes)
jakarta.ws.rs.client.Invocation.Builder
acceptEncoding(String... encodings)
jakarta.ws.rs.client.Invocation.Builder
acceptLanguage(String... locales)
jakarta.ws.rs.client.Invocation.Builder
acceptLanguage(Locale... locales)
jakarta.ws.rs.client.AsyncInvoker
async()
jakarta.ws.rs.client.Invocation
build(String method)
jakarta.ws.rs.client.Invocation
build(String method, jakarta.ws.rs.client.Entity<?> entity)
jakarta.ws.rs.client.Invocation
buildDelete()
jakarta.ws.rs.client.Invocation
buildGet()
jakarta.ws.rs.client.Invocation
buildPost(jakarta.ws.rs.client.Entity<?> entity)
jakarta.ws.rs.client.Invocation
buildPut(jakarta.ws.rs.client.Entity<?> entity)
jakarta.ws.rs.client.Invocation.Builder
cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
jakarta.ws.rs.client.Invocation.Builder
cookie(jakarta.ws.rs.core.Cookie cookie)
jakarta.ws.rs.client.Invocation.Builder
cookie(String name, String value)
protected ClientInvocation
createClientInvocation(ClientInvocation invocation)
protected ClientInvocation
createClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent)
jakarta.ws.rs.core.Response
delete()
<T> T
delete(jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
delete(Class<T> responseType)
jakarta.ws.rs.core.Response
get()
<T> T
get(jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
get(Class<T> responseType)
ClientInvocation
getClientInvocation()
exposes the client invocation for easier integration with other librariesClientRequestHeaders
getHeaders()
jakarta.ws.rs.client.WebTarget
getTarget()
URI
getURI()
jakarta.ws.rs.core.Response
head()
jakarta.ws.rs.client.Invocation.Builder
header(String name, Object value)
jakarta.ws.rs.client.Invocation.Builder
headers(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
boolean
isChunked()
jakarta.ws.rs.core.Response
method(String name)
jakarta.ws.rs.core.Response
method(String name, jakarta.ws.rs.client.Entity<?> entity)
<T> T
method(String name, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
method(String name, jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
<T> T
method(String name, jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
method(String name, Class<T> responseType)
jakarta.ws.rs.core.Response
options()
<T> T
options(jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
options(Class<T> responseType)
jakarta.ws.rs.core.Response
patch(jakarta.ws.rs.client.Entity<?> entity)
<T> T
patch(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
patch(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
jakarta.ws.rs.core.Response
post(jakarta.ws.rs.client.Entity<?> entity)
<T> T
post(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
post(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
jakarta.ws.rs.client.Invocation.Builder
property(String name, Object value)
jakarta.ws.rs.core.Response
put(jakarta.ws.rs.client.Entity<?> entity)
<T> T
put(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
put(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
jakarta.ws.rs.client.CompletionStageRxInvoker
rx()
<T extends jakarta.ws.rs.client.RxInvoker>
Trx(Class<T> clazz)
void
setChunked(boolean chunked)
void
setClientInvocation(ClientInvocation invocation)
void
setTarget(jakarta.ws.rs.client.WebTarget target)
jakarta.ws.rs.core.Response
trace()
<T> T
trace(jakarta.ws.rs.core.GenericType<T> responseType)
<T> T
trace(Class<T> responseType)
-
-
-
Field Detail
-
invocation
protected ClientInvocation invocation
-
-
Constructor Detail
-
ClientInvocationBuilder
public ClientInvocationBuilder(ResteasyClient client, URI uri, ClientConfiguration configuration)
-
-
Method Detail
-
createClientInvocation
protected ClientInvocation createClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent)
-
createClientInvocation
protected ClientInvocation createClientInvocation(ClientInvocation invocation)
-
getHeaders
public ClientRequestHeaders getHeaders()
-
setClientInvocation
public void setClientInvocation(ClientInvocation invocation)
-
getClientInvocation
public ClientInvocation getClientInvocation()
exposes the client invocation for easier integration with other libraries- Returns:
- the underlying client invocation
-
accept
public jakarta.ws.rs.client.Invocation.Builder accept(String... mediaTypes)
- Specified by:
accept
in interfacejakarta.ws.rs.client.Invocation.Builder
-
accept
public jakarta.ws.rs.client.Invocation.Builder accept(jakarta.ws.rs.core.MediaType... mediaTypes)
- Specified by:
accept
in interfacejakarta.ws.rs.client.Invocation.Builder
-
acceptLanguage
public jakarta.ws.rs.client.Invocation.Builder acceptLanguage(Locale... locales)
- Specified by:
acceptLanguage
in interfacejakarta.ws.rs.client.Invocation.Builder
-
acceptLanguage
public jakarta.ws.rs.client.Invocation.Builder acceptLanguage(String... locales)
- Specified by:
acceptLanguage
in interfacejakarta.ws.rs.client.Invocation.Builder
-
acceptEncoding
public jakarta.ws.rs.client.Invocation.Builder acceptEncoding(String... encodings)
- Specified by:
acceptEncoding
in interfacejakarta.ws.rs.client.Invocation.Builder
-
cookie
public jakarta.ws.rs.client.Invocation.Builder cookie(jakarta.ws.rs.core.Cookie cookie)
- Specified by:
cookie
in interfacejakarta.ws.rs.client.Invocation.Builder
-
cookie
public jakarta.ws.rs.client.Invocation.Builder cookie(String name, String value)
- Specified by:
cookie
in interfacejakarta.ws.rs.client.Invocation.Builder
-
cacheControl
public jakarta.ws.rs.client.Invocation.Builder cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
- Specified by:
cacheControl
in interfacejakarta.ws.rs.client.Invocation.Builder
-
header
public jakarta.ws.rs.client.Invocation.Builder header(String name, Object value)
- Specified by:
header
in interfacejakarta.ws.rs.client.Invocation.Builder
-
headers
public jakarta.ws.rs.client.Invocation.Builder headers(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
- Specified by:
headers
in interfacejakarta.ws.rs.client.Invocation.Builder
-
build
public jakarta.ws.rs.client.Invocation build(String method)
- Specified by:
build
in interfacejakarta.ws.rs.client.Invocation.Builder
-
build
public jakarta.ws.rs.client.Invocation build(String method, jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
build
in interfacejakarta.ws.rs.client.Invocation.Builder
-
buildGet
public jakarta.ws.rs.client.Invocation buildGet()
- Specified by:
buildGet
in interfacejakarta.ws.rs.client.Invocation.Builder
-
buildDelete
public jakarta.ws.rs.client.Invocation buildDelete()
- Specified by:
buildDelete
in interfacejakarta.ws.rs.client.Invocation.Builder
-
buildPost
public jakarta.ws.rs.client.Invocation buildPost(jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
buildPost
in interfacejakarta.ws.rs.client.Invocation.Builder
-
buildPut
public jakarta.ws.rs.client.Invocation buildPut(jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
buildPut
in interfacejakarta.ws.rs.client.Invocation.Builder
-
async
public jakarta.ws.rs.client.AsyncInvoker async()
- Specified by:
async
in interfacejakarta.ws.rs.client.Invocation.Builder
-
get
public jakarta.ws.rs.core.Response get()
- Specified by:
get
in interfacejakarta.ws.rs.client.SyncInvoker
-
get
public <T> T get(Class<T> responseType)
- Specified by:
get
in interfacejakarta.ws.rs.client.SyncInvoker
-
get
public <T> T get(jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
get
in interfacejakarta.ws.rs.client.SyncInvoker
-
put
public jakarta.ws.rs.core.Response put(jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
put
in interfacejakarta.ws.rs.client.SyncInvoker
-
put
public <T> T put(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
- Specified by:
put
in interfacejakarta.ws.rs.client.SyncInvoker
-
put
public <T> T put(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
put
in interfacejakarta.ws.rs.client.SyncInvoker
-
post
public jakarta.ws.rs.core.Response post(jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
post
in interfacejakarta.ws.rs.client.SyncInvoker
-
post
public <T> T post(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
- Specified by:
post
in interfacejakarta.ws.rs.client.SyncInvoker
-
post
public <T> T post(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
post
in interfacejakarta.ws.rs.client.SyncInvoker
-
delete
public jakarta.ws.rs.core.Response delete()
- Specified by:
delete
in interfacejakarta.ws.rs.client.SyncInvoker
-
delete
public <T> T delete(Class<T> responseType)
- Specified by:
delete
in interfacejakarta.ws.rs.client.SyncInvoker
-
delete
public <T> T delete(jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
delete
in interfacejakarta.ws.rs.client.SyncInvoker
-
head
public jakarta.ws.rs.core.Response head()
- Specified by:
head
in interfacejakarta.ws.rs.client.SyncInvoker
-
options
public jakarta.ws.rs.core.Response options()
- Specified by:
options
in interfacejakarta.ws.rs.client.SyncInvoker
-
options
public <T> T options(Class<T> responseType)
- Specified by:
options
in interfacejakarta.ws.rs.client.SyncInvoker
-
options
public <T> T options(jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
options
in interfacejakarta.ws.rs.client.SyncInvoker
-
trace
public jakarta.ws.rs.core.Response trace()
- Specified by:
trace
in interfacejakarta.ws.rs.client.SyncInvoker
-
trace
public <T> T trace(Class<T> responseType)
- Specified by:
trace
in interfacejakarta.ws.rs.client.SyncInvoker
-
trace
public <T> T trace(jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
trace
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public jakarta.ws.rs.core.Response method(String name)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public <T> T method(String name, Class<T> responseType)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public <T> T method(String name, jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public jakarta.ws.rs.core.Response method(String name, jakarta.ws.rs.client.Entity<?> entity)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public <T> T method(String name, jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
public <T> T method(String name, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
property
public jakarta.ws.rs.client.Invocation.Builder property(String name, Object value)
- Specified by:
property
in interfacejakarta.ws.rs.client.Invocation.Builder
-
isChunked
public boolean isChunked()
-
setChunked
public void setChunked(boolean chunked)
-
rx
public jakarta.ws.rs.client.CompletionStageRxInvoker rx()
- Specified by:
rx
in interfacejakarta.ws.rs.client.Invocation.Builder
-
rx
public <T extends jakarta.ws.rs.client.RxInvoker> T rx(Class<T> clazz)
- Specified by:
rx
in interfacejakarta.ws.rs.client.Invocation.Builder
-
patch
public jakarta.ws.rs.core.Response patch(jakarta.ws.rs.client.Entity<?> entity)
-
patch
public <T> T patch(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType)
-
patch
public <T> T patch(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType)
-
getURI
public URI getURI()
-
getTarget
public jakarta.ws.rs.client.WebTarget getTarget()
-
setTarget
public void setTarget(jakarta.ws.rs.client.WebTarget target)
-
-