Interface WebApplicationResponse

All Superinterfaces:
HttpServletResponse, ServletResponse
All Known Implementing Classes:
DefaultWebApplicationResponse, EmbeddedResponse, HttpWebApplicationResponse, NanoResponse

public interface WebApplicationResponse extends HttpServletResponse
The WebApplicationResponse API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • closeAsyncResponse

      void closeAsyncResponse()
      Close the async response.
    • getCookies

      Collection<Cookie> getCookies()
      Returns the cookies.
      Returns:
      the cookies
    • getResponseCloser

      Runnable getResponseCloser()
      Returns the response closer.
      Returns:
      the response closer
    • getUnderlyingOutputStream

      OutputStream getUnderlyingOutputStream()
      Returns the underlying output stream.
      Returns:
      the underlying output stream
    • setUnderlyingOutputStream

      void setUnderlyingOutputStream(OutputStream outputStream)
      Set the underlying output stream.
      Parameters:
      outputStream - the underlying output stream.
    • writeHeaders

      void writeHeaders() throws IOException
      Write the headers.
      Throws:
      IOException - when an I/O error occurs.
    • writeStatusLine

      void writeStatusLine() throws IOException
      Write the status line.
      Throws:
      IOException - when an I/O error occurs.
    • setWebApplication

      void setWebApplication(WebApplication webApplication)
      Set the web application.
      Parameters:
      webApplication - the web application.
    • setResponseCloser

      void setResponseCloser(Runnable responseCloser)
      Set the response closer.
      Parameters:
      responseCloser - the response closer.