Interface WriterInterceptorContext

    • Method Detail

      • getEntity

        java.lang.Object getEntity()
        Get object to be written as HTTP entity.
        Returns:
        object to be written as HTTP entity.
      • setEntity

        void setEntity​(java.lang.Object entity)
        Update object to be written as HTTP entity.
        Parameters:
        entity - new object to be written.
      • getOutputStream

        java.io.OutputStream getOutputStream()
        Get the output stream for the object to be written. The runtime is responsible for closing the output stream.
        Returns:
        output stream for the object to be written.
      • setOutputStream

        void setOutputStream​(java.io.OutputStream os)
        Set a new output stream for the object to be written. For example, by wrapping it with another output stream. The runtime is responsible for closing the output stream that is set.
        Parameters:
        os - new output stream for the object to be written.
      • getHeaders

        MultivaluedMap<java.lang.String,​java.lang.Object> getHeaders()
        Get mutable map of HTTP headers.
        Returns:
        map of HTTP headers.