Class ClientRequestContextImpl

  • All Implemented Interfaces:

    public class ClientRequestContextImpl
    extends Object
    $Revision: 1 $
    Bill Burke
    • Field Detail

      • abortedWithResponse

        protected abortedWithResponse
    • Constructor Detail

      • ClientRequestContextImpl

        public ClientRequestContextImpl​(ClientInvocation invocation)
    • Method Detail

      • getAbortedWithResponse

        public getAbortedWithResponse()
      • getProperty

        public Object getProperty​(String name)
        Specified by:
        getProperty in interface
      • getPropertyNames

        public Collection<String> getPropertyNames()
        Specified by:
        getPropertyNames in interface
      • setProperty

        public void setProperty​(String name,
                                Object object)
        Specified by:
        setProperty in interface
      • removeProperty

        public void removeProperty​(String name)
        Specified by:
        removeProperty in interface
      • getEntityClass

        public Class<?> getEntityClass()
        Specified by:
        getEntityClass in interface
      • getEntityType

        public Type getEntityType()
        Specified by:
        getEntityType in interface
      • setEntity

        public void setEntity​(Object entity)
        Specified by:
        setEntity in interface
      • setEntity

        public void setEntity​(Object entity,
                              Annotation[] annotations,
        Specified by:
        setEntity in interface
      • getUri

        public URI getUri()
        Specified by:
        getUri in interface
      • setUri

        public void setUri​(URI uri)
        Specified by:
        setUri in interface
      • getMethod

        public String getMethod()
        Specified by:
        getMethod in interface
      • setMethod

        public void setMethod​(String method)
        Specified by:
        setMethod in interface
      • getHeaders

        public<String,​Object> getHeaders()
        Specified by:
        getHeaders in interface
      • getDate

        public Date getDate()
        Specified by:
        getDate in interface
      • getLanguage

        public Locale getLanguage()
        Specified by:
        getLanguage in interface
      • getMediaType

        public getMediaType()
        Specified by:
        getMediaType in interface
      • getAcceptableMediaTypes

        public List<> getAcceptableMediaTypes()
        Specified by:
        getAcceptableMediaTypes in interface
      • getAcceptableLanguages

        public List<Locale> getAcceptableLanguages()
        Specified by:
        getAcceptableLanguages in interface
      • getCookies

        public Map<String,​> getCookies()
        Specified by:
        getCookies in interface
      • hasEntity

        public boolean hasEntity()
        Specified by:
        hasEntity in interface
      • getEntityStream

        public OutputStream getEntityStream()
        Specified by:
        getEntityStream in interface
      • setEntityStream

        public void setEntityStream​(OutputStream entityStream)
        Specified by:
        setEntityStream in interface
      • getEntity

        public Object getEntity()
        Specified by:
        getEntity in interface
      • getEntityAnnotations

        public Annotation[] getEntityAnnotations()
        Specified by:
        getEntityAnnotations in interface
      • getClient

        public getClient()
        Specified by:
        getClient in interface
      • getConfiguration

        public getConfiguration()
        Specified by:
        getConfiguration in interface
      • abortWith

        public void abortWith​( response)
        Specified by:
        abortWith in interface
      • getStringHeaders

        public<String,​String> getStringHeaders()
        Specified by:
        getStringHeaders in interface
      • getHeaderString

        public String getHeaderString​(String name)
        Specified by:
        getHeaderString in interface
      • getInvocation

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