Class ClientRequestContextImpl

java.lang.Object
org.jboss.resteasy.client.jaxrs.internal.ClientRequestContextImpl
All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestContext

public class ClientRequestContextImpl extends Object implements jakarta.ws.rs.client.ClientRequestContext
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

    • invocation

      protected ClientInvocation invocation
    • abortedWithResponse

      protected jakarta.ws.rs.core.Response abortedWithResponse
  • Constructor Details

    • ClientRequestContextImpl

      public ClientRequestContextImpl(ClientInvocation invocation)
  • Method Details

    • getAbortedWithResponse

      public jakarta.ws.rs.core.Response getAbortedWithResponse()
    • 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
    • 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
    • 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
    • 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
    • getEntityStream

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

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

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

      public Annotation[] getEntityAnnotations()
      Specified by:
      getEntityAnnotations 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
    • 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
    • getInvocation

      public ClientInvocation getInvocation()
      exposes the client invocation for easier integration with other libraries
      Returns:
      the underlying client invocation