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

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

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

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

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

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

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

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

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