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