Package javax.servlet

Interface ServletResponse

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

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

    • flushBuffer

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

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

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

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

      java.util.Locale getLocale()
      Get the locale.
      Returns:
      the locale.
    • getOutputStream

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

      java.io.PrintWriter getWriter() throws java.io.IOException
      Get the writer.
      Returns:
      the writer.
      Throws:
      java.io.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​(java.lang.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​(java.lang.String contentType)
      Set the content type.
      Parameters:
      contentType - the content type.
    • setLocale

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