Class ClientInvocation

java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientInvocation
All Implemented Interfaces:
jakarta.ws.rs.client.Invocation

public class ClientInvocation extends Object implements jakarta.ws.rs.client.Invocation
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • extractResult

      public static <T> T extractResult(jakarta.ws.rs.core.GenericType<T> responseType, jakarta.ws.rs.core.Response response, Annotation[] annotations)
      Extracts result from response throwing an appropriate exception if not a successful response.
      Type Parameters:
      T - type
      Parameters:
      responseType - generic type
      response - response entity
      annotations - array of annotations
      Returns:
      extracted result of type T
    • handleErrorStatus

      public static <T> T handleErrorStatus(jakarta.ws.rs.core.Response response)
      Throw an exception. Expecting a status of 400 or greater.
      Type Parameters:
      T - type
      Parameters:
      response - response entity
      Returns:
      unreachable
    • getClientConfiguration

      public ClientConfiguration getClientConfiguration()
    • getClient

      public ResteasyClient getClient()
    • getDelegatingOutputStream

      public DelegatingOutputStream getDelegatingOutputStream()
    • setDelegatingOutputStream

      public void setDelegatingOutputStream(DelegatingOutputStream delegatingOutputStream)
    • getEntityStream

      public OutputStream getEntityStream()
    • setEntityStream

      public void setEntityStream(OutputStream entityStream)
    • getUri

      public URI getUri()
    • setUri

      public void setUri(URI uri)
    • getEntityAnnotations

      public Annotation[] getEntityAnnotations()
    • setEntityAnnotations

      public void setEntityAnnotations(Annotation[] entityAnnotations)
    • getMethod

      public String getMethod()
    • setMethod

      public void setMethod(String method)
    • setHeaders

      public void setHeaders(ClientRequestHeaders headers)
    • getMutableProperties

      public Map<String,Object> getMutableProperties()
    • getEntity

      public Object getEntity()
    • getEntityGenericType

      public Type getEntityGenericType()
    • getEntityClass

      public Class<?> getEntityClass()
    • getHeaders

      public ClientRequestHeaders getHeaders()
    • setEntity

      public void setEntity(jakarta.ws.rs.client.Entity<?> entity)
    • setEntityObject

      public void setEntityObject(Object ent)
    • writeRequestBody

      public void writeRequestBody(OutputStream outputStream) throws IOException
      Throws:
      IOException
    • getWriterInterceptors

      public jakarta.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()
    • getRequestFilters

      public jakarta.ws.rs.client.ClientRequestFilter[] getRequestFilters()
    • getResponseFilters

      public jakarta.ws.rs.client.ClientResponseFilter[] getResponseFilters()
    • getConfiguration

      public jakarta.ws.rs.core.Configuration getConfiguration()
    • isChunked

      public boolean isChunked()
    • setChunked

      public void setChunked(boolean chunked)
    • invoke

      public ClientResponse invoke()
      Specified by:
      invoke in interface jakarta.ws.rs.client.Invocation
    • invoke

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

      public <T> T invoke(jakarta.ws.rs.core.GenericType<T> responseType)
      Specified by:
      invoke in interface jakarta.ws.rs.client.Invocation
    • submit

      public Future<jakarta.ws.rs.core.Response> submit()
      Specified by:
      submit in interface jakarta.ws.rs.client.Invocation
    • submit

      public <T> Future<T> submit(Class<T> responseType)
      Specified by:
      submit in interface jakarta.ws.rs.client.Invocation
    • submit

      public <T> Future<T> submit(jakarta.ws.rs.core.GenericType<T> responseType)
      Specified by:
      submit in interface jakarta.ws.rs.client.Invocation
    • submit

      public <T> Future<T> submit(jakarta.ws.rs.client.InvocationCallback<T> callback)
      Specified by:
      submit in interface jakarta.ws.rs.client.Invocation
    • asyncInvocationExecutor

      public ExecutorService asyncInvocationExecutor()
    • getGenericTypeExtractor

      protected static <T> AsyncClientHttpEngine.ResultExtractor<T> getGenericTypeExtractor(jakarta.ws.rs.core.GenericType<T> responseType)
    • getResponseTypeExtractor

      protected static <T> AsyncClientHttpEngine.ResultExtractor<T> getResponseTypeExtractor(Class<T> responseType)
    • submitCF

      public CompletableFuture<jakarta.ws.rs.core.Response> submitCF()
    • submitCF

      public <T> CompletableFuture<T> submitCF(Class<T> responseType)
    • submitCF

      public <T> CompletableFuture<T> submitCF(jakarta.ws.rs.core.GenericType<T> responseType)
    • reactive

      public Optional<org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.ReactiveInvocation> reactive()
      If the client's HTTP engine implements ReactiveClientHttpEngine then you can access the latter's Publisher via this method.
    • property

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

      public ClientInvoker getClientInvoker()
    • setClientInvoker

      public void setClientInvoker(ClientInvoker clientInvoker)
    • filterRequest

      protected ClientResponse filterRequest(ClientRequestContextImpl requestContext)
    • filterResponse

      protected ClientResponse filterResponse(ClientRequestContextImpl requestContext, ClientResponse response)
    • getTracingLogger

      public RESTEasyTracingLogger getTracingLogger()
    • setActualTarget

      public void setActualTarget(jakarta.ws.rs.client.WebTarget target)
    • getActualTarget

      public jakarta.ws.rs.client.WebTarget getActualTarget()