Class JerseyInvocation.Builder

  • All Implemented Interfaces:
    jakarta.ws.rs.client.Invocation.Builder, jakarta.ws.rs.client.SyncInvoker
    Enclosing class:
    JerseyInvocation

    public static class JerseyInvocation.Builder
    extends Object
    implements jakarta.ws.rs.client.Invocation.Builder
    Jersey-specific client invocation builder.
    • Constructor Detail

      • Builder

        protected Builder​(URI uri,
                          ClientConfig configuration)
        Create new Jersey-specific client invocation builder.
        Parameters:
        uri - invoked request URI.
        configuration - Jersey client configuration.
    • Method Detail

      • build

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

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

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

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

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

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

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

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

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

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

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

        public JerseyInvocation.Builder acceptLanguage​(String... locales)
        Specified by:
        acceptLanguage in interface jakarta.ws.rs.client.Invocation.Builder
      • cookie

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

        public JerseyInvocation.Builder cacheControl​(jakarta.ws.rs.core.CacheControl cacheControl)
        Specified by:
        cacheControl in interface jakarta.ws.rs.client.Invocation.Builder
      • headers

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

        public jakarta.ws.rs.core.Response get()
                                        throws jakarta.ws.rs.ProcessingException
        Specified by:
        get in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
      • get

        public <T> T get​(Class<T> responseType)
                  throws jakarta.ws.rs.ProcessingException,
                         jakarta.ws.rs.WebApplicationException
        Specified by:
        get in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • get

        public <T> T get​(jakarta.ws.rs.core.GenericType<T> responseType)
                  throws jakarta.ws.rs.ProcessingException,
                         jakarta.ws.rs.WebApplicationException
        Specified by:
        get in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • put

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

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

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

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

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

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

        public jakarta.ws.rs.core.Response delete()
                                           throws jakarta.ws.rs.ProcessingException
        Specified by:
        delete in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
      • delete

        public <T> T delete​(Class<T> responseType)
                     throws jakarta.ws.rs.ProcessingException,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        delete in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • delete

        public <T> T delete​(jakarta.ws.rs.core.GenericType<T> responseType)
                     throws jakarta.ws.rs.ProcessingException,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        delete in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • head

        public jakarta.ws.rs.core.Response head()
                                         throws jakarta.ws.rs.ProcessingException
        Specified by:
        head in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
      • options

        public jakarta.ws.rs.core.Response options()
                                            throws jakarta.ws.rs.ProcessingException
        Specified by:
        options in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
      • options

        public <T> T options​(Class<T> responseType)
                      throws jakarta.ws.rs.ProcessingException,
                             jakarta.ws.rs.WebApplicationException
        Specified by:
        options in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • options

        public <T> T options​(jakarta.ws.rs.core.GenericType<T> responseType)
                      throws jakarta.ws.rs.ProcessingException,
                             jakarta.ws.rs.WebApplicationException
        Specified by:
        options in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • trace

        public jakarta.ws.rs.core.Response trace()
                                          throws jakarta.ws.rs.ProcessingException
        Specified by:
        trace in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
      • trace

        public <T> T trace​(Class<T> responseType)
                    throws jakarta.ws.rs.ProcessingException,
                           jakarta.ws.rs.WebApplicationException
        Specified by:
        trace in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • trace

        public <T> T trace​(jakarta.ws.rs.core.GenericType<T> responseType)
                    throws jakarta.ws.rs.ProcessingException,
                           jakarta.ws.rs.WebApplicationException
        Specified by:
        trace in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • method

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

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

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

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

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

        public <T> T method​(String name,
                            jakarta.ws.rs.client.Entity<?> entity,
                            jakarta.ws.rs.core.GenericType<T> responseType)
                     throws jakarta.ws.rs.ProcessingException,
                            jakarta.ws.rs.WebApplicationException
        Specified by:
        method in interface jakarta.ws.rs.client.SyncInvoker
        Throws:
        jakarta.ws.rs.ProcessingException
        jakarta.ws.rs.WebApplicationException
      • rx

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

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