Package org.glassfish.jersey.client
Class JerseyInvocation.Builder
java.lang.Object
org.glassfish.jersey.client.JerseyInvocation.Builder
- All Implemented Interfaces:
Invocation.Builder
,SyncInvoker
- Enclosing class:
- JerseyInvocation
Jersey-specific
client invocation builder
.-
Constructor Summary
ModifierConstructorDescriptionprotected
Builder
(URI uri, ClientConfig configuration) Create new Jersey-specific client invocation builder. -
Method Summary
Modifier and TypeMethodDescriptionacceptEncoding
(String... encodings) acceptLanguage
(String... locales) acceptLanguage
(Locale... locales) async()
buildGet()
cacheControl
(CacheControl cacheControl) delete()
<T> T
delete
(GenericType<T> responseType) <T> T
get()
<T> T
get
(GenericType<T> responseType) <T> T
head()
headers
(MultivaluedMap<String, Object> headers) <T> T
method
(String name, Entity<?> entity, GenericType<T> responseType) <T> T
<T> T
method
(String name, GenericType<T> responseType) <T> T
options()
<T> T
options
(GenericType<T> responseType) <T> T
<T> T
post
(Entity<?> entity, GenericType<T> responseType) <T> T
<T> T
put
(Entity<?> entity, GenericType<T> responseType) <T> T
rx()
<T extends RxInvoker>
Ttrace()
<T> T
trace
(GenericType<T> responseType) <T> T
-
Constructor Details
-
Builder
Create new Jersey-specific client invocation builder.- Parameters:
uri
- invoked request URI.configuration
- Jersey client configuration.
-
-
Method Details
-
build
- Specified by:
build
in interfaceInvocation.Builder
-
build
- Specified by:
build
in interfaceInvocation.Builder
-
buildGet
- Specified by:
buildGet
in interfaceInvocation.Builder
-
buildDelete
- Specified by:
buildDelete
in interfaceInvocation.Builder
-
buildPost
- Specified by:
buildPost
in interfaceInvocation.Builder
-
buildPut
- Specified by:
buildPut
in interfaceInvocation.Builder
-
async
- Specified by:
async
in interfaceInvocation.Builder
-
accept
- Specified by:
accept
in interfaceInvocation.Builder
-
accept
- Specified by:
accept
in interfaceInvocation.Builder
-
acceptEncoding
- Specified by:
acceptEncoding
in interfaceInvocation.Builder
-
acceptLanguage
- Specified by:
acceptLanguage
in interfaceInvocation.Builder
-
acceptLanguage
- Specified by:
acceptLanguage
in interfaceInvocation.Builder
-
cookie
- Specified by:
cookie
in interfaceInvocation.Builder
-
cookie
- Specified by:
cookie
in interfaceInvocation.Builder
-
cacheControl
- Specified by:
cacheControl
in interfaceInvocation.Builder
-
header
- Specified by:
header
in interfaceInvocation.Builder
-
headers
- Specified by:
headers
in interfaceInvocation.Builder
-
get
- Specified by:
get
in interfaceSyncInvoker
- Throws:
ProcessingException
-
get
- Specified by:
get
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
get
- Specified by:
get
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
put
- Specified by:
put
in interfaceSyncInvoker
- Throws:
ProcessingException
-
put
public <T> T put(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
put
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
put
public <T> T put(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
put
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
post
- Specified by:
post
in interfaceSyncInvoker
- Throws:
ProcessingException
-
post
public <T> T post(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
post
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
post
public <T> T post(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
post
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
delete
- Specified by:
delete
in interfaceSyncInvoker
- Throws:
ProcessingException
-
delete
- Specified by:
delete
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
delete
public <T> T delete(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
delete
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
head
- Specified by:
head
in interfaceSyncInvoker
- Throws:
ProcessingException
-
options
- Specified by:
options
in interfaceSyncInvoker
- Throws:
ProcessingException
-
options
- Specified by:
options
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
options
public <T> T options(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
options
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
trace
- Specified by:
trace
in interfaceSyncInvoker
- Throws:
ProcessingException
-
trace
- Specified by:
trace
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
trace
- Specified by:
trace
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
method
- Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
-
method
public <T> T method(String name, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
method
public <T> T method(String name, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
method
- Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
-
method
public <T> T method(String name, Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
method
public <T> T method(String name, Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
method
in interfaceSyncInvoker
- Throws:
ProcessingException
WebApplicationException
-
property
- Specified by:
property
in interfaceInvocation.Builder
-
rx
- Specified by:
rx
in interfaceInvocation.Builder
-
rx
- Specified by:
rx
in interfaceInvocation.Builder
-