Interface ResponseContext

    • Method Detail

      • isBinary

        boolean isBinary()
        Deprecated.
        True if the response contains a binary entity as opposed to a character based entity. Default is false. If true, the AbderaServlet will pass in the OutputStream for writing out, if false, the AbderaServlet will pass in the Writer.
      • setBinary

        ResponseContext setBinary​(boolean binary)
        Deprecated.
        True if the response contains a binary entity as opposed to a character based entity. Default is false. If true, the AbderaServlet will pass in the OutputStream for writing out, if false, the AbderaServlet will pass in the Writer.
      • hasEntity

        boolean hasEntity()
        Deprecated.
        True if the response contains an entity
      • writeTo

        void writeTo​(Writer javaWriter)
              throws IOException
        Deprecated.
        Write the response out to the specified Writer
        Throws:
        IOException
      • writeTo

        void writeTo​(OutputStream out,
                     org.apache.abdera.writer.Writer writer)
              throws IOException
        Deprecated.
        Write the response out to the specified OutputStream
        Throws:
        IOException
      • writeTo

        void writeTo​(Writer javaWriter,
                     org.apache.abdera.writer.Writer abderaWriter)
              throws IOException
        Deprecated.
        Write the response out to the specified Writer
        Throws:
        IOException
      • setWriter

        ResponseContext setWriter​(org.apache.abdera.writer.Writer writer)
        Deprecated.
        Set the Abdera Writer for this response. This can be used to customize the serialization of the response
      • removeHeader

        ResponseContext removeHeader​(String name)
        Deprecated.
        Remove the specified header from the response
      • setEscapedHeader

        ResponseContext setEscapedHeader​(String name,
                                         org.apache.abdera.i18n.text.CharUtils.Profile profile,
                                         String value)
        Deprecated.
        Set a pct-encoded header in the response
      • setAge

        ResponseContext setAge​(long age)
        Deprecated.
        Set the value of the Age header
      • setContentLanguage

        ResponseContext setContentLanguage​(String language)
        Deprecated.
        Set the value of the Content-Language header
      • setContentLength

        ResponseContext setContentLength​(long length)
        Deprecated.
        Set the value of the Content-Length header
      • setContentLocation

        ResponseContext setContentLocation​(String uri)
        Deprecated.
        Set the value of the Content-Location header
      • setContentType

        ResponseContext setContentType​(String type)
        Deprecated.
        Set the value of the Content-Type header
      • setContentType

        ResponseContext setContentType​(String type,
                                       String charset)
        Deprecated.
        Set the value of the Content-Type header
      • setEntityTag

        ResponseContext setEntityTag​(String etag)
        Deprecated.
        Set the value of the ETag header
      • setEntityTag

        ResponseContext setEntityTag​(org.apache.abdera.util.EntityTag etag)
        Deprecated.
        Set the value of the ETag header
      • setExpires

        ResponseContext setExpires​(Date date)
        Deprecated.
        Set the value of the Expires header
      • setLastModified

        ResponseContext setLastModified​(Date date)
        Deprecated.
        Set the value of the Last-Modified header
      • setLocation

        ResponseContext setLocation​(String uri)
        Deprecated.
        Set the value of the Location header
      • setStatus

        ResponseContext setStatus​(int status)
        Deprecated.
        Set the response status code