Interface ContainerResponseWriter

All Known Implementing Classes:
ByteArrayContainerResponseWriter, DummyContainerResponseWriter

public interface ContainerResponseWriter
All implementation of this interface should be able to write data in container response, e. g. servlet response.
Version:
$Id: $
Author:
Andrey Parfonov
  • Method Details

    • writeHeaders

      void writeHeaders(GenericContainerResponse response) throws IOException
      Write HTTP status and headers in HTTP response.
      Parameters:
      response - container response
      Throws:
      IOException - if any i/o error occurs
    • writeBody

      void writeBody(GenericContainerResponse response, javax.ws.rs.ext.MessageBodyWriter entityWriter) throws IOException
      Write entity body in output stream.
      Parameters:
      response - container response
      entityWriter - See MessageBodyWriter
      Throws:
      IOException - if any i/o error occurs