public static class JerseyInvocation.Builder extends Object implements jakarta.ws.rs.client.Invocation.Builder
client invocation builder
.Modifier | Constructor and Description |
---|---|
protected |
Builder(URI uri,
ClientConfig configuration)
Create new Jersey-specific client invocation builder.
|
Modifier and Type | Method and Description |
---|---|
JerseyInvocation.Builder |
accept(jakarta.ws.rs.core.MediaType... mediaTypes) |
JerseyInvocation.Builder |
accept(String... mediaTypes) |
jakarta.ws.rs.client.Invocation.Builder |
acceptEncoding(String... encodings) |
JerseyInvocation.Builder |
acceptLanguage(Locale... locales) |
JerseyInvocation.Builder |
acceptLanguage(String... locales) |
jakarta.ws.rs.client.AsyncInvoker |
async() |
JerseyInvocation |
build(String method) |
JerseyInvocation |
build(String method,
jakarta.ws.rs.client.Entity<?> entity) |
JerseyInvocation |
buildDelete() |
JerseyInvocation |
buildGet() |
JerseyInvocation |
buildPost(jakarta.ws.rs.client.Entity<?> entity) |
JerseyInvocation |
buildPut(jakarta.ws.rs.client.Entity<?> entity) |
JerseyInvocation.Builder |
cacheControl(jakarta.ws.rs.core.CacheControl cacheControl) |
JerseyInvocation.Builder |
cookie(jakarta.ws.rs.core.Cookie cookie) |
JerseyInvocation.Builder |
cookie(String name,
String value) |
jakarta.ws.rs.core.Response |
delete() |
<T> T |
delete(Class<T> responseType) |
<T> T |
delete(jakarta.ws.rs.core.GenericType<T> responseType) |
jakarta.ws.rs.core.Response |
get() |
<T> T |
get(Class<T> responseType) |
<T> T |
get(jakarta.ws.rs.core.GenericType<T> responseType) |
jakarta.ws.rs.core.Response |
head() |
JerseyInvocation.Builder |
header(String name,
Object value) |
JerseyInvocation.Builder |
headers(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers) |
jakarta.ws.rs.core.Response |
method(String name) |
<T> T |
method(String name,
Class<T> responseType) |
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,
Class<T> responseType) |
<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.core.GenericType<T> responseType) |
jakarta.ws.rs.core.Response |
options() |
<T> T |
options(Class<T> responseType) |
<T> T |
options(jakarta.ws.rs.core.GenericType<T> responseType) |
jakarta.ws.rs.core.Response |
post(jakarta.ws.rs.client.Entity<?> entity) |
<T> T |
post(jakarta.ws.rs.client.Entity<?> entity,
Class<T> responseType) |
<T> T |
post(jakarta.ws.rs.client.Entity<?> entity,
jakarta.ws.rs.core.GenericType<T> responseType) |
JerseyInvocation.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,
Class<T> responseType) |
<T> T |
put(jakarta.ws.rs.client.Entity<?> entity,
jakarta.ws.rs.core.GenericType<T> responseType) |
jakarta.ws.rs.client.CompletionStageRxInvoker |
rx() |
<T extends jakarta.ws.rs.client.RxInvoker> |
rx(Class<T> clazz) |
jakarta.ws.rs.core.Response |
trace() |
<T> T |
trace(Class<T> responseType) |
<T> T |
trace(jakarta.ws.rs.core.GenericType<T> responseType) |
protected Builder(URI uri, ClientConfig configuration)
uri
- invoked request URI.configuration
- Jersey client configuration.public JerseyInvocation build(String method)
build
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation build(String method, jakarta.ws.rs.client.Entity<?> entity)
build
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation buildGet()
buildGet
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation buildDelete()
buildDelete
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation buildPost(jakarta.ws.rs.client.Entity<?> entity)
buildPost
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation buildPut(jakarta.ws.rs.client.Entity<?> entity)
buildPut
in interface jakarta.ws.rs.client.Invocation.Builder
public jakarta.ws.rs.client.AsyncInvoker async()
async
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder accept(String... mediaTypes)
accept
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder accept(jakarta.ws.rs.core.MediaType... mediaTypes)
accept
in interface jakarta.ws.rs.client.Invocation.Builder
public jakarta.ws.rs.client.Invocation.Builder acceptEncoding(String... encodings)
acceptEncoding
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder acceptLanguage(Locale... locales)
acceptLanguage
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder acceptLanguage(String... locales)
acceptLanguage
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder cookie(jakarta.ws.rs.core.Cookie cookie)
cookie
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder cookie(String name, String value)
cookie
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
cacheControl
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder header(String name, Object value)
header
in interface jakarta.ws.rs.client.Invocation.Builder
public JerseyInvocation.Builder headers(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
headers
in interface jakarta.ws.rs.client.Invocation.Builder
public jakarta.ws.rs.core.Response get() throws jakarta.ws.rs.ProcessingException
get
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T get(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
get
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T get(jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
get
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response put(jakarta.ws.rs.client.Entity<?> entity) throws jakarta.ws.rs.ProcessingException
put
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T put(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
put
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T put(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
put
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response post(jakarta.ws.rs.client.Entity<?> entity) throws jakarta.ws.rs.ProcessingException
post
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T post(jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
post
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T post(jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
post
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response delete() throws jakarta.ws.rs.ProcessingException
delete
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T delete(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
delete
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T delete(jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
delete
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response head() throws jakarta.ws.rs.ProcessingException
head
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public jakarta.ws.rs.core.Response options() throws jakarta.ws.rs.ProcessingException
options
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T options(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
options
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T options(jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
options
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response trace() throws jakarta.ws.rs.ProcessingException
trace
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T trace(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
trace
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T trace(jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
trace
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response method(String name) throws jakarta.ws.rs.ProcessingException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T method(String name, Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T method(String name, jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public jakarta.ws.rs.core.Response method(String name, jakarta.ws.rs.client.Entity<?> entity) throws jakarta.ws.rs.ProcessingException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
public <T> T method(String name, jakarta.ws.rs.client.Entity<?> entity, Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public <T> T method(String name, jakarta.ws.rs.client.Entity<?> entity, jakarta.ws.rs.core.GenericType<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
method
in interface jakarta.ws.rs.client.SyncInvoker
jakarta.ws.rs.ProcessingException
jakarta.ws.rs.WebApplicationException
public JerseyInvocation.Builder property(String name, Object value)
property
in interface jakarta.ws.rs.client.Invocation.Builder
public jakarta.ws.rs.client.CompletionStageRxInvoker rx()
rx
in interface jakarta.ws.rs.client.Invocation.Builder
public <T extends jakarta.ws.rs.client.RxInvoker> T rx(Class<T> clazz)
rx
in interface jakarta.ws.rs.client.Invocation.Builder
Copyright © 2007-2020, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.