public static class JerseyInvocation.Builder extends Object implements Invocation.Builder
client invocation builder.| Modifier | Constructor and Description |
|---|---|
protected |
Builder(URI uri,
ClientConfig configuration)
Create new Jersey-specific client invocation builder.
|
protected Builder(URI uri, ClientConfig configuration)
uri - invoked request URI.configuration - Jersey client configuration.public JerseyInvocation build(String method)
build in interface Invocation.Builderpublic JerseyInvocation build(String method, Entity<?> entity)
build in interface Invocation.Builderpublic JerseyInvocation buildGet()
buildGet in interface Invocation.Builderpublic JerseyInvocation buildDelete()
buildDelete in interface Invocation.Builderpublic JerseyInvocation buildPost(Entity<?> entity)
buildPost in interface Invocation.Builderpublic JerseyInvocation buildPut(Entity<?> entity)
buildPut in interface Invocation.Builderpublic AsyncInvoker async()
async in interface Invocation.Builderpublic JerseyInvocation.Builder accept(String... mediaTypes)
accept in interface Invocation.Builderpublic JerseyInvocation.Builder accept(MediaType... mediaTypes)
accept in interface Invocation.Builderpublic Invocation.Builder acceptEncoding(String... encodings)
acceptEncoding in interface Invocation.Builderpublic JerseyInvocation.Builder acceptLanguage(Locale... locales)
acceptLanguage in interface Invocation.Builderpublic JerseyInvocation.Builder acceptLanguage(String... locales)
acceptLanguage in interface Invocation.Builderpublic JerseyInvocation.Builder cookie(Cookie cookie)
cookie in interface Invocation.Builderpublic JerseyInvocation.Builder cookie(String name, String value)
cookie in interface Invocation.Builderpublic JerseyInvocation.Builder cacheControl(CacheControl cacheControl)
cacheControl in interface Invocation.Builderpublic JerseyInvocation.Builder header(String name, Object value)
header in interface Invocation.Builderpublic JerseyInvocation.Builder headers(MultivaluedMap<String,Object> headers)
headers in interface Invocation.Builderpublic Response get() throws ProcessingException
get in interface SyncInvokerProcessingExceptionpublic <T> T get(Class<T> responseType) throws ProcessingException, WebApplicationException
get in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T get(GenericType<T> responseType) throws ProcessingException, WebApplicationException
get in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response put(Entity<?> entity) throws ProcessingException
put in interface SyncInvokerProcessingExceptionpublic <T> T put(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException
put in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T put(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException
put in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response post(Entity<?> entity) throws ProcessingException
post in interface SyncInvokerProcessingExceptionpublic <T> T post(Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException
post in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T post(Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException
post in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response delete() throws ProcessingException
delete in interface SyncInvokerProcessingExceptionpublic <T> T delete(Class<T> responseType) throws ProcessingException, WebApplicationException
delete in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T delete(GenericType<T> responseType) throws ProcessingException, WebApplicationException
delete in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response head() throws ProcessingException
head in interface SyncInvokerProcessingExceptionpublic Response options() throws ProcessingException
options in interface SyncInvokerProcessingExceptionpublic <T> T options(Class<T> responseType) throws ProcessingException, WebApplicationException
options in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T options(GenericType<T> responseType) throws ProcessingException, WebApplicationException
options in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response trace() throws ProcessingException
trace in interface SyncInvokerProcessingExceptionpublic <T> T trace(Class<T> responseType) throws ProcessingException, WebApplicationException
trace in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T trace(GenericType<T> responseType) throws ProcessingException, WebApplicationException
trace in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response method(String name) throws ProcessingException
method in interface SyncInvokerProcessingExceptionpublic <T> T method(String name, Class<T> responseType) throws ProcessingException, WebApplicationException
method in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T method(String name, GenericType<T> responseType) throws ProcessingException, WebApplicationException
method in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic Response method(String name, Entity<?> entity) throws ProcessingException
method in interface SyncInvokerProcessingExceptionpublic <T> T method(String name, Entity<?> entity, Class<T> responseType) throws ProcessingException, WebApplicationException
method in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic <T> T method(String name, Entity<?> entity, GenericType<T> responseType) throws ProcessingException, WebApplicationException
method in interface SyncInvokerProcessingExceptionWebApplicationExceptionpublic JerseyInvocation.Builder property(String name, Object value)
property in interface Invocation.Builderpublic CompletionStageRxInvoker rx()
rx in interface Invocation.Builderpublic <T extends RxInvoker> T rx(Class<T> clazz)
rx in interface Invocation.Builderpublic JerseyInvocation.Builder setCancellable(Future cancellable)
ClientRequest ClientRequest.isCancelled() method. Can be used for instance
by CompletionStageRxInvoker to pass the created CompletableFuture to the provided SyncInvoker.cancellable - the Future whose result of Future.cancel(boolean) will be available by
ClientRequest.isCancelled().Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.