Class ClientInvocationBuilder

  • All Implemented Interfaces:
    javax.ws.rs.client.Invocation.Builder, javax.ws.rs.client.SyncInvoker

    public class ClientInvocationBuilder
    extends Object
    implements javax.ws.rs.client.Invocation.Builder
    Version:
    $Revision: 1 $
    Author:
    Bill Burke, Alessio Soldano
    • Method Detail

      • setClientInvocation

        public void setClientInvocation​(ClientInvocation invocation)
      • getClientInvocation

        public ClientInvocation getClientInvocation()
        exposes the client invocation for easier integration with other libraries
        Returns:
        the underlying client invocation
      • accept

        public javax.ws.rs.client.Invocation.Builder accept​(String... mediaTypes)
        Specified by:
        accept in interface javax.ws.rs.client.Invocation.Builder
      • accept

        public javax.ws.rs.client.Invocation.Builder accept​(javax.ws.rs.core.MediaType... mediaTypes)
        Specified by:
        accept in interface javax.ws.rs.client.Invocation.Builder
      • acceptLanguage

        public javax.ws.rs.client.Invocation.Builder acceptLanguage​(Locale... locales)
        Specified by:
        acceptLanguage in interface javax.ws.rs.client.Invocation.Builder
      • acceptLanguage

        public javax.ws.rs.client.Invocation.Builder acceptLanguage​(String... locales)
        Specified by:
        acceptLanguage in interface javax.ws.rs.client.Invocation.Builder
      • acceptEncoding

        public javax.ws.rs.client.Invocation.Builder acceptEncoding​(String... encodings)
        Specified by:
        acceptEncoding in interface javax.ws.rs.client.Invocation.Builder
      • cookie

        public javax.ws.rs.client.Invocation.Builder cookie​(javax.ws.rs.core.Cookie cookie)
        Specified by:
        cookie in interface javax.ws.rs.client.Invocation.Builder
      • cookie

        public javax.ws.rs.client.Invocation.Builder cookie​(String name,
                                                            String value)
        Specified by:
        cookie in interface javax.ws.rs.client.Invocation.Builder
      • cacheControl

        public javax.ws.rs.client.Invocation.Builder cacheControl​(javax.ws.rs.core.CacheControl cacheControl)
        Specified by:
        cacheControl in interface javax.ws.rs.client.Invocation.Builder
      • header

        public javax.ws.rs.client.Invocation.Builder header​(String name,
                                                            Object value)
        Specified by:
        header in interface javax.ws.rs.client.Invocation.Builder
      • headers

        public javax.ws.rs.client.Invocation.Builder headers​(javax.ws.rs.core.MultivaluedMap<String,​Object> headers)
        Specified by:
        headers in interface javax.ws.rs.client.Invocation.Builder
      • build

        public javax.ws.rs.client.Invocation build​(String method)
        Specified by:
        build in interface javax.ws.rs.client.Invocation.Builder
      • build

        public javax.ws.rs.client.Invocation build​(String method,
                                                   javax.ws.rs.client.Entity<?> entity)
        Specified by:
        build in interface javax.ws.rs.client.Invocation.Builder
      • buildGet

        public javax.ws.rs.client.Invocation buildGet()
        Specified by:
        buildGet in interface javax.ws.rs.client.Invocation.Builder
      • buildDelete

        public javax.ws.rs.client.Invocation buildDelete()
        Specified by:
        buildDelete in interface javax.ws.rs.client.Invocation.Builder
      • buildPost

        public javax.ws.rs.client.Invocation buildPost​(javax.ws.rs.client.Entity<?> entity)
        Specified by:
        buildPost in interface javax.ws.rs.client.Invocation.Builder
      • buildPut

        public javax.ws.rs.client.Invocation buildPut​(javax.ws.rs.client.Entity<?> entity)
        Specified by:
        buildPut in interface javax.ws.rs.client.Invocation.Builder
      • async

        public javax.ws.rs.client.AsyncInvoker async()
        Specified by:
        async in interface javax.ws.rs.client.Invocation.Builder
      • get

        public javax.ws.rs.core.Response get()
        Specified by:
        get in interface javax.ws.rs.client.SyncInvoker
      • get

        public <T> T get​(Class<T> responseType)
        Specified by:
        get in interface javax.ws.rs.client.SyncInvoker
      • get

        public <T> T get​(javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        get in interface javax.ws.rs.client.SyncInvoker
      • put

        public javax.ws.rs.core.Response put​(javax.ws.rs.client.Entity<?> entity)
        Specified by:
        put in interface javax.ws.rs.client.SyncInvoker
      • put

        public <T> T put​(javax.ws.rs.client.Entity<?> entity,
                         Class<T> responseType)
        Specified by:
        put in interface javax.ws.rs.client.SyncInvoker
      • put

        public <T> T put​(javax.ws.rs.client.Entity<?> entity,
                         javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        put in interface javax.ws.rs.client.SyncInvoker
      • post

        public javax.ws.rs.core.Response post​(javax.ws.rs.client.Entity<?> entity)
        Specified by:
        post in interface javax.ws.rs.client.SyncInvoker
      • post

        public <T> T post​(javax.ws.rs.client.Entity<?> entity,
                          Class<T> responseType)
        Specified by:
        post in interface javax.ws.rs.client.SyncInvoker
      • post

        public <T> T post​(javax.ws.rs.client.Entity<?> entity,
                          javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        post in interface javax.ws.rs.client.SyncInvoker
      • delete

        public javax.ws.rs.core.Response delete()
        Specified by:
        delete in interface javax.ws.rs.client.SyncInvoker
      • delete

        public <T> T delete​(Class<T> responseType)
        Specified by:
        delete in interface javax.ws.rs.client.SyncInvoker
      • delete

        public <T> T delete​(javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        delete in interface javax.ws.rs.client.SyncInvoker
      • head

        public javax.ws.rs.core.Response head()
        Specified by:
        head in interface javax.ws.rs.client.SyncInvoker
      • options

        public javax.ws.rs.core.Response options()
        Specified by:
        options in interface javax.ws.rs.client.SyncInvoker
      • options

        public <T> T options​(Class<T> responseType)
        Specified by:
        options in interface javax.ws.rs.client.SyncInvoker
      • options

        public <T> T options​(javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        options in interface javax.ws.rs.client.SyncInvoker
      • trace

        public javax.ws.rs.core.Response trace()
        Specified by:
        trace in interface javax.ws.rs.client.SyncInvoker
      • trace

        public <T> T trace​(Class<T> responseType)
        Specified by:
        trace in interface javax.ws.rs.client.SyncInvoker
      • trace

        public <T> T trace​(javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        trace in interface javax.ws.rs.client.SyncInvoker
      • method

        public javax.ws.rs.core.Response method​(String name)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

        public <T> T method​(String name,
                            Class<T> responseType)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

        public <T> T method​(String name,
                            javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

        public javax.ws.rs.core.Response method​(String name,
                                                javax.ws.rs.client.Entity<?> entity)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

        public <T> T method​(String name,
                            javax.ws.rs.client.Entity<?> entity,
                            Class<T> responseType)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

        public <T> T method​(String name,
                            javax.ws.rs.client.Entity<?> entity,
                            javax.ws.rs.core.GenericType<T> responseType)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • property

        public javax.ws.rs.client.Invocation.Builder property​(String name,
                                                              Object value)
        Specified by:
        property in interface javax.ws.rs.client.Invocation.Builder
      • isChunked

        public boolean isChunked()
      • setChunked

        public void setChunked​(boolean chunked)
      • rx

        public javax.ws.rs.client.CompletionStageRxInvoker rx()
        Specified by:
        rx in interface javax.ws.rs.client.Invocation.Builder
      • rx

        public <T extends javax.ws.rs.client.RxInvoker> T rx​(Class<T> clazz)
        Specified by:
        rx in interface javax.ws.rs.client.Invocation.Builder
      • patch

        public javax.ws.rs.core.Response patch​(javax.ws.rs.client.Entity<?> entity)
      • patch

        public <T> T patch​(javax.ws.rs.client.Entity<?> entity,
                           Class<T> responseType)
      • patch

        public <T> T patch​(javax.ws.rs.client.Entity<?> entity,
                           javax.ws.rs.core.GenericType<T> responseType)
      • getURI

        public URI getURI()
      • getTarget

        public javax.ws.rs.client.WebTarget getTarget()
      • setTarget

        public void setTarget​(javax.ws.rs.client.WebTarget target)