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
  • Constructor Details

  • Method Details

    • getProviders

      public jakarta.ws.rs.ext.Providers getProviders()
      Specified by:
      getProviders in interface ResteasyReactiveClientRequestContext
      Returns:
      the context where to lookup all the provider instances of the current client.
    • getContext

      public io.vertx.core.Context getContext()
      Specified by:
      getContext in interface ResteasyReactiveClientRequestContext
      Returns:
      the captured or created duplicated context. See ResteasyReactiveClientRequestContext.VERTX_CONTEXT_PROPERTY for details.
    • getResponseType

      public jakarta.ws.rs.core.GenericType<?> getResponseType()
      Specified by:
      getResponseType in interface ResteasyReactiveClientRequestContext
    • setCallStatsCollector

      public void setCallStatsCollector(io.smallrye.stork.api.ServiceInstance statCollectingServiceInstance)
      Description copied from interface: ResteasyReactiveClientRequestContext
      This 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:
      setCallStatsCollector in interface ResteasyReactiveClientRequestContext
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface jakarta.ws.rs.client.ClientRequestContext
    • getPropertyNames

      public Collection<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface jakarta.ws.rs.client.ClientRequestContext
    • setProperty

      public void setProperty(String name, Object object)
      Specified by:
      setProperty in interface jakarta.ws.rs.client.ClientRequestContext
    • removeProperty

      public void removeProperty(String name)
      Specified by:
      removeProperty in interface jakarta.ws.rs.client.ClientRequestContext
    • getUri

      public URI getUri()
      Specified by:
      getUri in interface jakarta.ws.rs.client.ClientRequestContext
    • setUri

      public void setUri(URI uri)
      Specified by:
      setUri in interface jakarta.ws.rs.client.ClientRequestContext
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface jakarta.ws.rs.client.ClientRequestContext
    • setMethod

      public void setMethod(String method)
      Specified by:
      setMethod in interface jakarta.ws.rs.client.ClientRequestContext
    • getHeaders

      public jakarta.ws.rs.core.MultivaluedMap<String,Object> getHeaders()
      Specified by:
      getHeaders in interface jakarta.ws.rs.client.ClientRequestContext
    • getStringHeaders

      public jakarta.ws.rs.core.MultivaluedMap<String,String> getStringHeaders()
      Specified by:
      getStringHeaders in interface jakarta.ws.rs.client.ClientRequestContext
    • getHeaderString

      public String getHeaderString(String name)
      Specified by:
      getHeaderString in interface jakarta.ws.rs.client.ClientRequestContext
    • getDate

      public Date getDate()
      Specified by:
      getDate in interface jakarta.ws.rs.client.ClientRequestContext
    • getLanguage

      public Locale getLanguage()
      Specified by:
      getLanguage in interface jakarta.ws.rs.client.ClientRequestContext
    • getMediaType

      public jakarta.ws.rs.core.MediaType getMediaType()
      Specified by:
      getMediaType in interface jakarta.ws.rs.client.ClientRequestContext
    • getAcceptableMediaTypes

      public List<jakarta.ws.rs.core.MediaType> getAcceptableMediaTypes()
      Specified by:
      getAcceptableMediaTypes in interface jakarta.ws.rs.client.ClientRequestContext
    • getAcceptableLanguages

      public List<Locale> getAcceptableLanguages()
      Specified by:
      getAcceptableLanguages in interface jakarta.ws.rs.client.ClientRequestContext
    • getCookies

      public Map<String,jakarta.ws.rs.core.Cookie> getCookies()
      Specified by:
      getCookies in interface jakarta.ws.rs.client.ClientRequestContext
    • hasEntity

      public boolean hasEntity()
      Specified by:
      hasEntity in interface jakarta.ws.rs.client.ClientRequestContext
    • getEntity

      public Object getEntity()
      Specified by:
      getEntity in interface jakarta.ws.rs.client.ClientRequestContext
    • getEntityClass

      public Class<?> getEntityClass()
      Specified by:
      getEntityClass in interface jakarta.ws.rs.client.ClientRequestContext
    • getEntityType

      public Type getEntityType()
      Specified by:
      getEntityType in interface jakarta.ws.rs.client.ClientRequestContext
    • setEntity

      public void setEntity(Object entity)
      Specified by:
      setEntity in interface jakarta.ws.rs.client.ClientRequestContext
    • setEntity

      public void setEntity(Object entity, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      setEntity in interface jakarta.ws.rs.client.ClientRequestContext
    • getEntityAnnotations

      public Annotation[] getEntityAnnotations()
      Specified by:
      getEntityAnnotations in interface jakarta.ws.rs.client.ClientRequestContext
    • getEntityStream

      public OutputStream getEntityStream()
      Specified by:
      getEntityStream in interface jakarta.ws.rs.client.ClientRequestContext
    • setEntityStream

      public void setEntityStream(OutputStream outputStream)
      Specified by:
      setEntityStream in interface jakarta.ws.rs.client.ClientRequestContext
    • getClient

      public jakarta.ws.rs.client.Client getClient()
      Specified by:
      getClient in interface jakarta.ws.rs.client.ClientRequestContext
    • getConfiguration

      public jakarta.ws.rs.core.Configuration getConfiguration()
      Specified by:
      getConfiguration in interface jakarta.ws.rs.client.ClientRequestContext
    • abortWith

      public void abortWith(jakarta.ws.rs.core.Response response)
      Specified by:
      abortWith in interface jakarta.ws.rs.client.ClientRequestContext
    • getRestClientRequestContext

      public RestClientRequestContext getRestClientRequestContext()
    • isAborted

      public boolean isAborted()
    • getAbortedWith

      public jakarta.ws.rs.core.Response getAbortedWith()
    • suspend

      public void suspend()
      Specified by:
      suspend in interface ResteasyReactiveClientRequestContext
    • resume

      public void resume()
      Specified by:
      resume in interface ResteasyReactiveClientRequestContext
    • resume

      public void resume(Throwable t)
      Specified by:
      resume in interface ResteasyReactiveClientRequestContext