Class ClientInvocationBuilder

java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder
All Implemented Interfaces:
jakarta.ws.rs.client.Invocation.Builder, jakarta.ws.rs.client.SyncInvoker

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

  • Constructor Details

  • Method Details

    • createClientInvocation

      protected ClientInvocation createClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent)
    • createClientInvocation

      protected ClientInvocation createClientInvocation(ClientInvocation invocation)
    • getHeaders

      public ClientRequestHeaders getHeaders()
    • 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 jakarta.ws.rs.client.Invocation.Builder accept(String... mediaTypes)
      Specified by:
      accept in interface jakarta.ws.rs.client.Invocation.Builder
    • accept

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

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

      public jakarta.ws.rs.client.Invocation.Builder acceptLanguage(String... locales)
      Specified by:
      acceptLanguage 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
    • cookie

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

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

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

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

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

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

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

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

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

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

      public jakarta.ws.rs.client.Invocation 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
    • get

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean isChunked()
    • setChunked

      public void setChunked(boolean chunked)
    • 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
    • patch

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

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

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

      public URI getURI()
    • getTarget

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

      public void setTarget(jakarta.ws.rs.client.WebTarget target)