Class ContainerResponseContextImpl

    • Method Detail

      • getStatus

        public int getStatus()
        Specified by:
        getStatus in interface
      • setStatus

        public void setStatus​(int code)
        Specified by:
        setStatus in interface
      • getStatusInfo

        public getStatusInfo()
        Specified by:
        getStatusInfo in interface
      • setStatusInfo

        public void setStatusInfo​( statusInfo)
        Specified by:
        setStatusInfo 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
      • getHeaders

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

        public Set<String> getAllowedMethods()
        Specified by:
        getAllowedMethods in interface
      • getDate

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

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

        public int getLength()
        Specified by:
        getLength in interface
      • getMediaType

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

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

        public getEntityTag()
        Specified by:
        getEntityTag in interface
      • getLastModified

        public Date getLastModified()
        Specified by:
        getLastModified in interface
      • getLocation

        public URI getLocation()
        Specified by:
        getLocation in interface
      • getLinks

        public Set<> getLinks()
        Specified by:
        getLinks in interface
      • hasLink

        public boolean hasLink​(String relation)
        Specified by:
        hasLink in interface
      • getLink

        public getLink​(String relation)
        Specified by:
        getLink in interface
      • getLinkBuilder

        public getLinkBuilder​(String relation)
        Specified by:
        getLinkBuilder in interface
      • hasEntity

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

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

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

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

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

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

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

        public void resume​(Throwable t)
        Description copied from interface: SuspendableContainerResponseContext
        Aborts the current response with the given exception. This behaves as if the request filter threw this exception synchronously, which means that the exception will not be mapped by exception mappers, the response filters will stop running, and the async response callbacks will be called with this exception.
        Specified by:
        resume in interface SuspendableContainerResponseContext
        t - the exception to send back to the client, as an internal server error.