org.jboss.portal.common.servlet
Class BufferingResponseWrapper

java.lang.Object
  extended by HttpServletResponseWrapper
      extended by org.jboss.portal.common.servlet.BufferingResponseWrapper

public class BufferingResponseWrapper
extends HttpServletResponseWrapper

Redirection of the Writer

Version:
$Revision: 7228 $
Author:
Thomas Heute

Field Summary
protected  int bufferSize
          Not really used but we need it to memorize what the client set optionally.
 
Constructor Summary
BufferingResponseWrapper(HttpServletResponse response)
           
 
Method Summary
 void addCookie(Cookie arg0)
           
 void addDateHeader(java.lang.String arg0, long arg1)
           
 void addHeader(java.lang.String arg0, java.lang.String arg1)
           
 void addIntHeader(java.lang.String arg0, int arg1)
           
 int getBufferSize()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContent()
           
 ServletOutputStream getOutputStream()
           
 java.io.PrintWriter getWriter()
           
 boolean isCommitted()
           
 void reset()
           
 void resetBuffer()
           
 void sendError(int arg0)
           
 void sendError(int arg0, java.lang.String arg1)
           
 void sendRedirect(java.lang.String arg0)
           
 void setBufferSize(int bufferSize)
           
 void setCharacterEncoding(java.lang.String characterEncoding)
           
 void setContentLength(int arg0)
           
 void setContentType(java.lang.String arg0)
           
 void setDateHeader(java.lang.String arg0, long arg1)
           
 void setHeader(java.lang.String arg0, java.lang.String arg1)
           
 void setIntHeader(java.lang.String arg0, int arg1)
           
 void setLocale(java.util.Locale arg0)
           
 void setStatus(int arg0)
           
 void setStatus(int arg0, java.lang.String arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bufferSize

protected int bufferSize
Not really used but we need it to memorize what the client set optionally.

Constructor Detail

BufferingResponseWrapper

public BufferingResponseWrapper(HttpServletResponse response)
Method Detail

getContent

public java.lang.String getContent()

addCookie

public void addCookie(Cookie arg0)

addDateHeader

public void addDateHeader(java.lang.String arg0,
                          long arg1)

addHeader

public void addHeader(java.lang.String arg0,
                      java.lang.String arg1)

addIntHeader

public void addIntHeader(java.lang.String arg0,
                         int arg1)

sendError

public void sendError(int arg0)
               throws java.io.IOException
Throws:
java.io.IOException

sendError

public void sendError(int arg0,
                      java.lang.String arg1)
               throws java.io.IOException
Throws:
java.io.IOException

sendRedirect

public void sendRedirect(java.lang.String arg0)
                  throws java.io.IOException
Throws:
java.io.IOException

setDateHeader

public void setDateHeader(java.lang.String arg0,
                          long arg1)

setHeader

public void setHeader(java.lang.String arg0,
                      java.lang.String arg1)

setIntHeader

public void setIntHeader(java.lang.String arg0,
                         int arg1)

setStatus

public void setStatus(int arg0)

setStatus

public void setStatus(int arg0,
                      java.lang.String arg1)

getBufferSize

public int getBufferSize()

getCharacterEncoding

public java.lang.String getCharacterEncoding()

getOutputStream

public ServletOutputStream getOutputStream()
                                    throws java.io.IOException
Throws:
java.io.IOException

getWriter

public java.io.PrintWriter getWriter()
                              throws java.io.IOException
Throws:
java.io.IOException

isCommitted

public boolean isCommitted()

reset

public void reset()

resetBuffer

public void resetBuffer()

setBufferSize

public void setBufferSize(int bufferSize)

setCharacterEncoding

public void setCharacterEncoding(java.lang.String characterEncoding)

setContentLength

public void setContentLength(int arg0)

setContentType

public void setContentType(java.lang.String arg0)

setLocale

public void setLocale(java.util.Locale arg0)