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
ConstructorsModifierConstructorDescriptionprotectedBuilder(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> Tdelete(GenericType<T> responseType) <T> Tget()<T> Tget(GenericType<T> responseType) <T> Thead()headers(MultivaluedMap<String, Object> headers) <T> Tmethod(String name, Entity<?> entity, GenericType<T> responseType) <T> T<T> Tmethod(String name, GenericType<T> responseType) <T> Toptions()<T> Toptions(GenericType<T> responseType) <T> T<T> Tpost(Entity<?> entity, GenericType<T> responseType) <T> T<T> Tput(Entity<?> entity, GenericType<T> responseType) <T> Trx()<T extends RxInvoker>
Ttrace()<T> Ttrace(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:
buildin interfaceInvocation.Builder
-
build
- Specified by:
buildin interfaceInvocation.Builder
-
buildGet
- Specified by:
buildGetin interfaceInvocation.Builder
-
buildDelete
- Specified by:
buildDeletein interfaceInvocation.Builder
-
buildPost
- Specified by:
buildPostin interfaceInvocation.Builder
-
buildPut
- Specified by:
buildPutin interfaceInvocation.Builder
-
async
- Specified by:
asyncin interfaceInvocation.Builder
-
accept
- Specified by:
acceptin interfaceInvocation.Builder
-
accept
- Specified by:
acceptin interfaceInvocation.Builder
-
acceptEncoding
- Specified by:
acceptEncodingin interfaceInvocation.Builder
-
acceptLanguage
- Specified by:
acceptLanguagein interfaceInvocation.Builder
-
acceptLanguage
- Specified by:
acceptLanguagein interfaceInvocation.Builder
-
cookie
- Specified by:
cookiein interfaceInvocation.Builder
-
cookie
- Specified by:
cookiein interfaceInvocation.Builder
-
cacheControl
- Specified by:
cacheControlin interfaceInvocation.Builder
-
header
- Specified by:
headerin interfaceInvocation.Builder
-
headers
- Specified by:
headersin interfaceInvocation.Builder
-
get
- Specified by:
getin interfaceSyncInvoker- Throws:
ProcessingException
-
get
- Specified by:
getin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
get
- Specified by:
getin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
put
- Specified by:
putin interfaceSyncInvoker- Throws:
ProcessingException
-
put
public <T> T put(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
putin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
put
public <T> T put(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
putin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
post
- Specified by:
postin interfaceSyncInvoker- Throws:
ProcessingException
-
post
public <T> T post(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
postin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
post
public <T> T post(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
postin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
delete
- Specified by:
deletein interfaceSyncInvoker- Throws:
ProcessingException
-
delete
- Specified by:
deletein interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
delete
public <T> T delete(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
deletein interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
head
- Specified by:
headin interfaceSyncInvoker- Throws:
ProcessingException
-
options
- Specified by:
optionsin interfaceSyncInvoker- Throws:
ProcessingException
-
options
- Specified by:
optionsin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
options
public <T> T options(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
optionsin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
trace
- Specified by:
tracein interfaceSyncInvoker- Throws:
ProcessingException
-
trace
- Specified by:
tracein interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
trace
- Specified by:
tracein interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
method
- Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingException
-
method
public <T> T method(String name, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
method
public <T> T method(String name, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
method
- Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingException
-
method
public <T> T method(String name, Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
method
public <T> T method(String name, Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
methodin interfaceSyncInvoker- Throws:
ProcessingExceptionWebApplicationException
-
property
- Specified by:
propertyin interfaceInvocation.Builder
-
rx
- Specified by:
rxin interfaceInvocation.Builder
-
rx
- Specified by:
rxin interfaceInvocation.Builder
-