Class ClientRequestContextImpl
java.lang.Object
org.jboss.resteasy.reactive.client.impl.ClientRequestContextImpl
- All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestContext,ResteasyReactiveClientRequestContext
public class ClientRequestContextImpl
extends Object
implements ResteasyReactiveClientRequestContext
-
Field Summary
Fields inherited from interface org.jboss.resteasy.reactive.client.spi.ResteasyReactiveClientRequestContext
VERTX_CONTEXT_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionClientRequestContextImpl(RestClientRequestContext restClientRequestContext, ClientImpl client, ConfigurationImpl configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidabortWith(jakarta.ws.rs.core.Response response) jakarta.ws.rs.core.ResponseList<jakarta.ws.rs.core.MediaType>jakarta.ws.rs.client.Clientjakarta.ws.rs.core.Configurationio.vertx.core.ContextgetDate()Class<?>getHeaderString(String name) jakarta.ws.rs.core.MediaTypegetProperty(String name) jakarta.ws.rs.ext.Providersjakarta.ws.rs.core.GenericType<?>getUri()booleanbooleanvoidremoveProperty(String name) voidresume()voidvoidsetCallStatsCollector(io.smallrye.stork.api.ServiceInstance statCollectingServiceInstance) This method is used to collect statistics about service instance calls in order to influence a Load Balancer algorithm depending on these statistics.voidvoidsetEntity(Object entity, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidsetEntityStream(OutputStream outputStream) voidvoidsetProperty(String name, Object object) voidvoidsuspend()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.client.ClientRequestContext
hasProperty
-
Constructor Details
-
ClientRequestContextImpl
public ClientRequestContextImpl(RestClientRequestContext restClientRequestContext, ClientImpl client, ConfigurationImpl configuration)
-
-
Method Details
-
getProviders
public jakarta.ws.rs.ext.Providers getProviders()- Specified by:
getProvidersin interfaceResteasyReactiveClientRequestContext- Returns:
- the context where to lookup all the provider instances of the current client.
-
getContext
public io.vertx.core.Context getContext()- Specified by:
getContextin interfaceResteasyReactiveClientRequestContext- Returns:
- the captured or created duplicated context. See
ResteasyReactiveClientRequestContext.VERTX_CONTEXT_PROPERTYfor details.
-
getResponseType
public jakarta.ws.rs.core.GenericType<?> getResponseType()- Specified by:
getResponseTypein interfaceResteasyReactiveClientRequestContext
-
setCallStatsCollector
public void setCallStatsCollector(io.smallrye.stork.api.ServiceInstance statCollectingServiceInstance) Description copied from interface:ResteasyReactiveClientRequestContextThis method is used to collect statistics about service instance calls in order to influence a Load Balancer algorithm depending on these statistics. You don't need to call this method in any case. It will be used by Stork when such a load balancer algorithm will be configured.- Specified by:
setCallStatsCollectorin interfaceResteasyReactiveClientRequestContext
-
getProperty
- Specified by:
getPropertyin interfacejakarta.ws.rs.client.ClientRequestContext
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacejakarta.ws.rs.client.ClientRequestContext
-
setProperty
- Specified by:
setPropertyin interfacejakarta.ws.rs.client.ClientRequestContext
-
removeProperty
- Specified by:
removePropertyin interfacejakarta.ws.rs.client.ClientRequestContext
-
getUri
- Specified by:
getUriin interfacejakarta.ws.rs.client.ClientRequestContext
-
setUri
- Specified by:
setUriin interfacejakarta.ws.rs.client.ClientRequestContext
-
getMethod
- Specified by:
getMethodin interfacejakarta.ws.rs.client.ClientRequestContext
-
setMethod
- Specified by:
setMethodin interfacejakarta.ws.rs.client.ClientRequestContext
-
getHeaders
- Specified by:
getHeadersin interfacejakarta.ws.rs.client.ClientRequestContext
-
getStringHeaders
- Specified by:
getStringHeadersin interfacejakarta.ws.rs.client.ClientRequestContext
-
getHeaderString
- Specified by:
getHeaderStringin interfacejakarta.ws.rs.client.ClientRequestContext
-
getDate
- Specified by:
getDatein interfacejakarta.ws.rs.client.ClientRequestContext
-
getLanguage
- Specified by:
getLanguagein interfacejakarta.ws.rs.client.ClientRequestContext
-
getMediaType
public jakarta.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaTypein interfacejakarta.ws.rs.client.ClientRequestContext
-
getAcceptableMediaTypes
- Specified by:
getAcceptableMediaTypesin interfacejakarta.ws.rs.client.ClientRequestContext
-
getAcceptableLanguages
- Specified by:
getAcceptableLanguagesin interfacejakarta.ws.rs.client.ClientRequestContext
-
getCookies
- Specified by:
getCookiesin interfacejakarta.ws.rs.client.ClientRequestContext
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntityin interfacejakarta.ws.rs.client.ClientRequestContext
-
getEntity
- Specified by:
getEntityin interfacejakarta.ws.rs.client.ClientRequestContext
-
getEntityClass
- Specified by:
getEntityClassin interfacejakarta.ws.rs.client.ClientRequestContext
-
getEntityType
- Specified by:
getEntityTypein interfacejakarta.ws.rs.client.ClientRequestContext
-
setEntity
- Specified by:
setEntityin interfacejakarta.ws.rs.client.ClientRequestContext
-
setEntity
public void setEntity(Object entity, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
setEntityin interfacejakarta.ws.rs.client.ClientRequestContext
-
getEntityAnnotations
- Specified by:
getEntityAnnotationsin interfacejakarta.ws.rs.client.ClientRequestContext
-
getEntityStream
- Specified by:
getEntityStreamin interfacejakarta.ws.rs.client.ClientRequestContext
-
setEntityStream
- Specified by:
setEntityStreamin interfacejakarta.ws.rs.client.ClientRequestContext
-
getClient
public jakarta.ws.rs.client.Client getClient()- Specified by:
getClientin interfacejakarta.ws.rs.client.ClientRequestContext
-
getConfiguration
public jakarta.ws.rs.core.Configuration getConfiguration()- Specified by:
getConfigurationin interfacejakarta.ws.rs.client.ClientRequestContext
-
abortWith
public void abortWith(jakarta.ws.rs.core.Response response) - Specified by:
abortWithin interfacejakarta.ws.rs.client.ClientRequestContext
-
getRestClientRequestContext
-
isAborted
public boolean isAborted() -
getAbortedWith
public jakarta.ws.rs.core.Response getAbortedWith() -
suspend
public void suspend()- Specified by:
suspendin interfaceResteasyReactiveClientRequestContext
-
resume
public void resume()- Specified by:
resumein interfaceResteasyReactiveClientRequestContext
-
resume
- Specified by:
resumein interfaceResteasyReactiveClientRequestContext
-