Class ClientInvocation

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

public class ClientInvocation extends Object implements javax.ws.rs.client.Invocation
Version:
$Revision: 1 $
  • Field Details

  • Constructor Details

  • Method Details

    • extractResult

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

      public static <T> T handleErrorStatus(javax.ws.rs.core.Response response)
      Throw an exception. Expecting a status of 400 or greater.
      Type Parameters:
      T -
      Parameters:
      response -
      Returns:
    • 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(javax.ws.rs.client.Entity<?> entity)
    • setEntityObject

      public void setEntityObject(Object ent)
    • writeRequestBody

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

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

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

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

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

      public boolean isChunked()
    • setChunked

      public void setChunked(boolean chunked)
    • invoke

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

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

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

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

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

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

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

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