Class ClientInvocation
java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientInvocation
- All Implemented Interfaces:
javax.ws.rs.client.Invocation
- Version:
- $Revision: 1 $
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.ws.rs.client.Invocation
javax.ws.rs.client.Invocation.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected ResteasyClientprotected ClientConfigurationprotected DelegatingOutputStreamprotected Objectprotected Annotation[]protected Class<?> protected Typeprotected OutputStreamprotected ClientRequestHeadersprotected Stringprotected URI -
Constructor Summary
ConstructorsConstructorDescriptionClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TextractResult(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.javax.ws.rs.core.ConfigurationClass<?> javax.ws.rs.client.ClientRequestFilter[]javax.ws.rs.client.ClientResponseFilter[]getUri()javax.ws.rs.ext.WriterInterceptor[]static <T> ThandleErrorStatus(javax.ws.rs.core.Response response) Throw an exception.javax.ws.rs.core.Responseinvoke()<T> T<T> Tinvoke(javax.ws.rs.core.GenericType<T> responseType) booleanjavax.ws.rs.client.InvocationvoidsetChunked(boolean chunked) voidsetDelegatingOutputStream(DelegatingOutputStream delegatingOutputStream) voidsetEntity(javax.ws.rs.client.Entity<?> entity) voidsetEntityAnnotations(Annotation[] entityAnnotations) voidsetEntityObject(Object ent) voidsetEntityStream(OutputStream entityStream) voidsetHeaders(ClientRequestHeaders headers) voidvoidFuture<javax.ws.rs.core.Response> submit()<T> Future<T> <T> Future<T> submit(javax.ws.rs.client.InvocationCallback<T> callback) <T> Future<T> submit(javax.ws.rs.core.GenericType<T> responseType) voidwriteRequestBody(OutputStream outputStream)
-
Field Details
-
client
-
headers
-
method
-
entity
-
entityGenericType
-
entityClass
-
entityAnnotations
-
configuration
-
uri
-
chunked
protected boolean chunked -
delegatingOutputStream
-
entityStream
-
-
Constructor Details
-
ClientInvocation
public ClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent)
-
-
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
-
getClient
-
getDelegatingOutputStream
-
setDelegatingOutputStream
-
getEntityStream
-
setEntityStream
-
getUri
-
setUri
-
getEntityAnnotations
-
setEntityAnnotations
-
getMethod
-
setMethod
-
setHeaders
-
getMutableProperties
-
getEntity
-
getEntityGenericType
-
getEntityClass
-
getHeaders
-
setEntity
public void setEntity(javax.ws.rs.client.Entity<?> entity) -
setEntityObject
-
writeRequestBody
- 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:
invokein interfacejavax.ws.rs.client.Invocation
-
invoke
- Specified by:
invokein interfacejavax.ws.rs.client.Invocation
-
invoke
public <T> T invoke(javax.ws.rs.core.GenericType<T> responseType) - Specified by:
invokein interfacejavax.ws.rs.client.Invocation
-
submit
- Specified by:
submitin interfacejavax.ws.rs.client.Invocation
-
submit
-
submit
- Specified by:
submitin interfacejavax.ws.rs.client.Invocation
-
submit
- Specified by:
submitin interfacejavax.ws.rs.client.Invocation
-
property
-