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.Builderpublic JerseyInvocation build(String method, jakarta.ws.rs.client.Entity<?> entity)
build in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation buildGet()
buildGet in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation buildDelete()
buildDelete in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation buildPost(jakarta.ws.rs.client.Entity<?> entity)
buildPost in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation buildPut(jakarta.ws.rs.client.Entity<?> entity)
buildPut in interface jakarta.ws.rs.client.Invocation.Builderpublic jakarta.ws.rs.client.AsyncInvoker async()
async in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder accept(String... mediaTypes)
accept in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder accept(jakarta.ws.rs.core.MediaType... mediaTypes)
accept in interface jakarta.ws.rs.client.Invocation.Builderpublic jakarta.ws.rs.client.Invocation.Builder acceptEncoding(String... encodings)
acceptEncoding in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder acceptLanguage(Locale... locales)
acceptLanguage in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder acceptLanguage(String... locales)
acceptLanguage in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder cookie(jakarta.ws.rs.core.Cookie cookie)
cookie in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder cookie(String name, String value)
cookie in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder cacheControl(jakarta.ws.rs.core.CacheControl cacheControl)
cacheControl in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder header(String name, Object value)
header in interface jakarta.ws.rs.client.Invocation.Builderpublic JerseyInvocation.Builder headers(jakarta.ws.rs.core.MultivaluedMap<String,Object> headers)
headers in interface jakarta.ws.rs.client.Invocation.Builderpublic jakarta.ws.rs.core.Response get()
throws jakarta.ws.rs.ProcessingException
get in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <T> T get(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
get in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response put(jakarta.ws.rs.client.Entity<?> entity)
throws jakarta.ws.rs.ProcessingException
put in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response post(jakarta.ws.rs.client.Entity<?> entity)
throws jakarta.ws.rs.ProcessingException
post in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response delete()
throws jakarta.ws.rs.ProcessingException
delete in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <T> T delete(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
delete in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response head()
throws jakarta.ws.rs.ProcessingException
head in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic jakarta.ws.rs.core.Response options()
throws jakarta.ws.rs.ProcessingException
options in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <T> T options(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
options in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response trace()
throws jakarta.ws.rs.ProcessingException
trace in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <T> T trace(Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
trace in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic jakarta.ws.rs.core.Response method(String name) throws jakarta.ws.rs.ProcessingException
method in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <T> T method(String name, Class<T> responseType) throws jakarta.ws.rs.ProcessingException, jakarta.ws.rs.WebApplicationException
method in interface jakarta.ws.rs.client.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic 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.SyncInvokerjakarta.ws.rs.ProcessingExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic <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.SyncInvokerjakarta.ws.rs.ProcessingExceptionjakarta.ws.rs.WebApplicationExceptionpublic JerseyInvocation.Builder property(String name, Object value)
property in interface jakarta.ws.rs.client.Invocation.Builderpublic jakarta.ws.rs.client.CompletionStageRxInvoker rx()
rx in interface jakarta.ws.rs.client.Invocation.Builderpublic <T extends jakarta.ws.rs.client.RxInvoker> T rx(Class<T> clazz)
rx in interface jakarta.ws.rs.client.Invocation.BuilderCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.