Class ClientInvocationBuilder

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

    public class ClientInvocationBuilder
    extends java.lang.Object
    implements javax.ws.rs.client.Invocation.Builder
    Version:
    $Revision: 1 $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.client.Invocation.Builder accept​(java.lang.String... mediaTypes)  
      javax.ws.rs.client.Invocation.Builder accept​(javax.ws.rs.core.MediaType... mediaTypes)  
      javax.ws.rs.client.Invocation.Builder acceptEncoding​(java.lang.String... encodings)  
      javax.ws.rs.client.Invocation.Builder acceptLanguage​(java.lang.String... locales)  
      javax.ws.rs.client.Invocation.Builder acceptLanguage​(java.util.Locale... locales)  
      javax.ws.rs.client.AsyncInvoker async()  
      javax.ws.rs.client.Invocation build​(java.lang.String method)  
      javax.ws.rs.client.Invocation build​(java.lang.String method, javax.ws.rs.client.Entity<?> entity)  
      javax.ws.rs.client.Invocation buildDelete()  
      javax.ws.rs.client.Invocation buildGet()  
      javax.ws.rs.client.Invocation buildPost​(javax.ws.rs.client.Entity<?> entity)  
      javax.ws.rs.client.Invocation buildPut​(javax.ws.rs.client.Entity<?> entity)  
      javax.ws.rs.client.Invocation.Builder cacheControl​(javax.ws.rs.core.CacheControl cacheControl)  
      javax.ws.rs.client.Invocation.Builder cookie​(java.lang.String name, java.lang.String value)  
      javax.ws.rs.client.Invocation.Builder cookie​(javax.ws.rs.core.Cookie cookie)  
      javax.ws.rs.core.Response delete()  
      <T> T delete​(java.lang.Class<T> responseType)  
      <T> T delete​(javax.ws.rs.core.GenericType<T> responseType)  
      javax.ws.rs.core.Response get()  
      <T> T get​(java.lang.Class<T> responseType)  
      <T> T get​(javax.ws.rs.core.GenericType<T> responseType)  
      ClientRequestHeaders getHeaders()  
      ClientInvocation getInvocation()  
      javax.ws.rs.core.Response head()  
      javax.ws.rs.client.Invocation.Builder header​(java.lang.String name, java.lang.Object value)  
      javax.ws.rs.client.Invocation.Builder headers​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.Object> headers)  
      boolean isChunked()  
      javax.ws.rs.core.Response method​(java.lang.String name)  
      <T> T method​(java.lang.String name, java.lang.Class<T> responseType)  
      javax.ws.rs.core.Response method​(java.lang.String name, javax.ws.rs.client.Entity<?> entity)  
      <T> T method​(java.lang.String name, javax.ws.rs.client.Entity<?> entity, java.lang.Class<T> responseType)  
      <T> T method​(java.lang.String name, javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> responseType)  
      <T> T method​(java.lang.String name, javax.ws.rs.core.GenericType<T> responseType)  
      javax.ws.rs.core.Response options()  
      <T> T options​(java.lang.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, java.lang.Class<T> responseType)  
      <T> T post​(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> responseType)  
      javax.ws.rs.client.Invocation.Builder property​(java.lang.String name, java.lang.Object value)  
      javax.ws.rs.core.Response put​(javax.ws.rs.client.Entity<?> entity)  
      <T> T put​(javax.ws.rs.client.Entity<?> entity, java.lang.Class<T> responseType)  
      <T> T put​(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.GenericType<T> responseType)  
      void setChunked​(boolean chunked)  
      javax.ws.rs.core.Response trace()  
      <T> T trace​(java.lang.Class<T> responseType)  
      <T> T trace​(javax.ws.rs.core.GenericType<T> responseType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • accept

        public javax.ws.rs.client.Invocation.Builder accept​(java.lang.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​(java.util.Locale... locales)
        Specified by:
        acceptLanguage in interface javax.ws.rs.client.Invocation.Builder
      • acceptLanguage

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

        public javax.ws.rs.client.Invocation.Builder acceptEncoding​(java.lang.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​(java.lang.String name,
                                                            java.lang.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​(java.lang.String name,
                                                            java.lang.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<java.lang.String,​java.lang.Object> headers)
        Specified by:
        headers in interface javax.ws.rs.client.Invocation.Builder
      • build

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

        public javax.ws.rs.client.Invocation build​(java.lang.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​(java.lang.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,
                         java.lang.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,
                          java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String name)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

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

        public <T> T method​(java.lang.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​(java.lang.String name,
                                                javax.ws.rs.client.Entity<?> entity)
        Specified by:
        method in interface javax.ws.rs.client.SyncInvoker
      • method

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

        public <T> T method​(java.lang.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​(java.lang.String name,
                                                              java.lang.Object value)
        Specified by:
        property in interface javax.ws.rs.client.Invocation.Builder
      • isChunked

        public boolean isChunked()
      • setChunked

        public void setChunked​(boolean chunked)