Class ClientInvocation
java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientInvocation
- All Implemented Interfaces:
- jakarta.ws.rs.client.Invocation
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Nested Class SummaryNested classes/interfaces inherited from interface jakarta.ws.rs.client.Invocationjakarta.ws.rs.client.Invocation.Builder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected jakarta.ws.rs.client.WebTargetprotected booleanprotected ResteasyClientprotected ClientInvokerprotected ClientConfigurationprotected DelegatingOutputStreamprotected Objectprotected Annotation[]protected Class<?> protected Typeprotected OutputStreamprotected ClientRequestHeadersprotected Stringprotected RESTEasyTracingLoggerprotected URI
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedClientInvocation(ClientInvocation clientInvocation) ClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TextractResult(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.protected ClientResponsefilterRequest(ClientRequestContextImpl requestContext) protected ClientResponsefilterResponse(ClientRequestContextImpl requestContext, ClientResponse response) jakarta.ws.rs.client.WebTargetjakarta.ws.rs.core.ConfigurationClass<?> protected static <T> AsyncClientHttpEngine.ResultExtractor<T> getGenericTypeExtractor(jakarta.ws.rs.core.GenericType<T> responseType) jakarta.ws.rs.client.ClientRequestFilter[]jakarta.ws.rs.client.ClientResponseFilter[]protected static <T> AsyncClientHttpEngine.ResultExtractor<T> getResponseTypeExtractor(Class<T> responseType) getUri()jakarta.ws.rs.ext.WriterInterceptor[]static <T> ThandleErrorStatus(jakarta.ws.rs.core.Response response) Throw an exception.invoke()<T> Tinvoke(jakarta.ws.rs.core.GenericType<T> responseType) <T> Tbooleanjakarta.ws.rs.client.InvocationOptional<org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.ReactiveInvocation> reactive()If the client's HTTP engine implementsReactiveClientHttpEnginethen you can access the latter'sPublishervia this method.voidsetActualTarget(jakarta.ws.rs.client.WebTarget target) voidsetChunked(boolean chunked) voidsetClientInvoker(ClientInvoker clientInvoker) voidsetDelegatingOutputStream(DelegatingOutputStream delegatingOutputStream) voidsetEntity(jakarta.ws.rs.client.Entity<?> entity) voidsetEntityAnnotations(Annotation[] entityAnnotations) voidsetEntityObject(Object ent) voidsetEntityStream(OutputStream entityStream) voidsetHeaders(ClientRequestHeaders headers) voidvoidFuture<jakarta.ws.rs.core.Response> submit()<T> Future<T> submit(jakarta.ws.rs.client.InvocationCallback<T> callback) <T> Future<T> submit(jakarta.ws.rs.core.GenericType<T> responseType) <T> Future<T> CompletableFuture<jakarta.ws.rs.core.Response> submitCF()<T> CompletableFuture<T> submitCF(jakarta.ws.rs.core.GenericType<T> responseType) <T> CompletableFuture<T> voidwriteRequestBody(OutputStream outputStream) 
- 
Field Details- 
tracingLogger
- 
client
- 
headers
- 
method
- 
entity
- 
entityGenericType
- 
entityClass
- 
entityAnnotations
- 
configuration
- 
uri
- 
chunkedprotected boolean chunked
- 
clientInvoker
- 
actualTargetprotected jakarta.ws.rs.client.WebTarget actualTarget
- 
delegatingOutputStream
- 
entityStream
 
- 
- 
Constructor Details- 
ClientInvocationpublic ClientInvocation(ResteasyClient client, URI uri, ClientRequestHeaders headers, ClientConfiguration parent) 
- 
ClientInvocation
 
- 
- 
Method Details- 
extractResultpublic 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
 
- 
handleErrorStatuspublic 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
- 
getClient
- 
getDelegatingOutputStream
- 
setDelegatingOutputStream
- 
getEntityStream
- 
setEntityStream
- 
getUri
- 
setUri
- 
getEntityAnnotations
- 
setEntityAnnotations
- 
getMethod
- 
setMethod
- 
setHeaders
- 
getMutableProperties
- 
getEntity
- 
getEntityGenericType
- 
getEntityClass
- 
getHeaders
- 
setEntitypublic void setEntity(jakarta.ws.rs.client.Entity<?> entity) 
- 
setEntityObject
- 
writeRequestBody- Throws:
- IOException
 
- 
getWriterInterceptorspublic jakarta.ws.rs.ext.WriterInterceptor[] getWriterInterceptors()
- 
getRequestFilterspublic jakarta.ws.rs.client.ClientRequestFilter[] getRequestFilters()
- 
getResponseFilterspublic jakarta.ws.rs.client.ClientResponseFilter[] getResponseFilters()
- 
getConfigurationpublic jakarta.ws.rs.core.Configuration getConfiguration()
- 
isChunkedpublic boolean isChunked()
- 
setChunkedpublic void setChunked(boolean chunked) 
- 
invoke- Specified by:
- invokein interface- jakarta.ws.rs.client.Invocation
 
- 
invoke- Specified by:
- invokein interface- jakarta.ws.rs.client.Invocation
 
- 
invokepublic <T> T invoke(jakarta.ws.rs.core.GenericType<T> responseType) - Specified by:
- invokein interface- jakarta.ws.rs.client.Invocation
 
- 
submit- Specified by:
- submitin interface- jakarta.ws.rs.client.Invocation
 
- 
submit- Specified by:
- submitin interface- jakarta.ws.rs.client.Invocation
 
- 
submit- Specified by:
- submitin interface- jakarta.ws.rs.client.Invocation
 
- 
submit- Specified by:
- submitin interface- jakarta.ws.rs.client.Invocation
 
- 
asyncInvocationExecutor
- 
getGenericTypeExtractorprotected static <T> AsyncClientHttpEngine.ResultExtractor<T> getGenericTypeExtractor(jakarta.ws.rs.core.GenericType<T> responseType) 
- 
getResponseTypeExtractorprotected static <T> AsyncClientHttpEngine.ResultExtractor<T> getResponseTypeExtractor(Class<T> responseType) 
- 
submitCF
- 
submitCF
- 
submitCF
- 
reactivepublic Optional<org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.ReactiveInvocation> reactive()If the client's HTTP engine implementsReactiveClientHttpEnginethen you can access the latter'sPublishervia this method.
- 
property- Specified by:
- propertyin interface- jakarta.ws.rs.client.Invocation
 
- 
getClientInvoker
- 
setClientInvoker
- 
filterRequest
- 
filterResponseprotected ClientResponse filterResponse(ClientRequestContextImpl requestContext, ClientResponse response) 
- 
getTracingLogger
- 
setActualTargetpublic void setActualTarget(jakarta.ws.rs.client.WebTarget target) 
- 
getActualTargetpublic jakarta.ws.rs.client.WebTarget getActualTarget()
 
-