Interface ServletResponse

All Known Subinterfaces:
HttpServletResponse, WebApplicationResponse
All Known Implementing Classes:
DefaultWebApplicationResponse, EmbeddedResponse, HttpServletResponseWrapper, HttpWebApplicationResponse, NanoResponse, ServletResponseWrapper

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

    • flushBuffer

      void flushBuffer() throws IOException
      Flush the buffer.
      Throws:
      IOException - when an I/O error occurs.
    • getBufferSize

      int getBufferSize()
      Returns the buffer size.
      Returns:
      the buffer size
    • getCharacterEncoding

      String getCharacterEncoding()
      Returns the character encoding.
      Returns:
      the character encoding
    • getContentType

      String getContentType()
      Returns the content type.
      Returns:
      the content type
    • getLocale

      Locale getLocale()
      Returns the locale.
      Returns:
      the locale
    • getOutputStream

      ServletOutputStream getOutputStream() throws IOException
      Get the output stream.
      Returns:
      the output stream.
      Throws:
      IOException - when an I/O error occurs.
    • getWriter

      PrintWriter getWriter() throws IOException
      Get the writer.
      Returns:
      the writer.
      Throws:
      IOException - when an I/O error occurs.
    • isCommitted

      boolean isCommitted()
      Is committed.
      Returns:
      true if it is, false otherwise.
    • reset

      void reset()
      Reset.
    • resetBuffer

      void resetBuffer()
      Reset the buffer.
    • setBufferSize

      void setBufferSize(int bufferSize)
      Set the buffer size.
      Parameters:
      bufferSize - the buffer size.
    • setCharacterEncoding

      void setCharacterEncoding(String characterEncoding)
      Set the character encoding.
      Parameters:
      characterEncoding - the character encoding.
    • setContentLength

      void setContentLength(int contentLength)
      Set the content length.
      Parameters:
      contentLength - the content length.
    • setContentLengthLong

      void setContentLengthLong(long contentLength)
      Set the content length.
      Parameters:
      contentLength - the content length.
    • setContentType

      void setContentType(String contentType)
      Set the content type.
      Parameters:
      contentType - the content type.
    • setLocale

      void setLocale(Locale locale)
      Set the locale.
      Parameters:
      locale - the locale.