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
-
Constructor Summary
ConstructorDescriptionClientInvocationBuilder
(ResteasyClient client, URI uri, ClientConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.client.Invocation.Builder
accept
(jakarta.ws.rs.core.MediaType... mediaTypes) jakarta.ws.rs.client.Invocation.Builder
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
jakarta.ws.rs.client.Invocation
jakarta.ws.rs.client.Invocation
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
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
jakarta.ws.rs.core.Response
get()
<T> T
get
(jakarta.ws.rs.core.GenericType<T> responseType) <T> T
exposes the client invocation for easier integration with other librariesjakarta.ws.rs.client.WebTarget
getURI()
jakarta.ws.rs.core.Response
head()
jakarta.ws.rs.client.Invocation.Builder
jakarta.ws.rs.client.Invocation.Builder
boolean
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
<T> T
method
(String name, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType) <T> T
<T> T
<T> T
jakarta.ws.rs.core.Response
options()
<T> T
options
(jakarta.ws.rs.core.GenericType<T> responseType) <T> T
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
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
jakarta.ws.rs.client.Invocation.Builder
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
jakarta.ws.rs.client.CompletionStageRxInvoker
rx()
<T extends jakarta.ws.rs.client.RxInvoker>
Tvoid
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
-
Field Details
-
invocation
-
-
Constructor Details
-
ClientInvocationBuilder
-
-
Method Details
-
createClientInvocation
protected ClientInvocation createClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent) -
createClientInvocation
-
getHeaders
-
setClientInvocation
-
getClientInvocation
exposes the client invocation for easier integration with other libraries- Returns:
- the underlying client invocation
-
accept
- 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
- Specified by:
acceptLanguage
in interfacejakarta.ws.rs.client.Invocation.Builder
-
acceptLanguage
- Specified by:
acceptLanguage
in interfacejakarta.ws.rs.client.Invocation.Builder
-
acceptEncoding
- 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
-
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
-
headers
-
build
- Specified by:
build
in interfacejakarta.ws.rs.client.Invocation.Builder
-
build
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
-
method
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
- Specified by:
method
in interfacejakarta.ws.rs.client.SyncInvoker
-
method
-
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
-
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
- 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
-
patch
public <T> T patch(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType) -
getURI
-
getTarget
public jakarta.ws.rs.client.WebTarget getTarget() -
setTarget
public void setTarget(jakarta.ws.rs.client.WebTarget target)
-