|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.ServletResponseWrapper
org.apache.commons.workflow.web.IncludeResponse23
Implementation of HttpServletResponseWrapper for use in
IncludeStep23. It buffers the response characters up into
a memory-resident buffer that can be converted into a String by calling
getContent().
| Field Summary | |
protected java.io.ByteArrayOutputStream |
baos
Accumulator for output that is generated via getOutputStream(). |
protected java.io.CharArrayWriter |
caw
Accumulator for output that is generated via getWriter(). |
| Constructor Summary | |
IncludeResponse23(javax.servlet.ServletResponse response)
Construct a new response wrapper according to the specified parameters. |
|
| Method Summary | |
void |
flushBuffer()
Swallow any attempt to flush the response buffer. |
java.lang.String |
getCharacterEncoding()
Return the character encoding for the included response (if any). |
java.lang.String |
getContent()
Return the response data written to this response as a String. |
javax.servlet.ServletOutputStream |
getOutputStream()
Return a ServletOutputStream that can be used to accumulate the response data for the included resource. |
java.io.PrintWriter |
getWriter()
Return a PrintWriter that can be used to accumulate the response data for the included resource. |
void |
reset()
Reset the response buffer and all headers. |
void |
resetBuffer()
Reset the response buffer to contain no data. |
void |
setContentType(java.lang.String contentType)
Set the content type (and possibly the character encoding) of the response data. |
| Methods inherited from class javax.servlet.ServletResponseWrapper |
getBufferSize, getLocale, getResponse, isCommitted, setBufferSize, setContentLength, setLocale, setResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.ByteArrayOutputStream baos
getOutputStream().
protected java.io.CharArrayWriter caw
getWriter().
| Constructor Detail |
public IncludeResponse23(javax.servlet.ServletResponse response)
response - The servlet response we are wrapping| Method Detail |
public void flushBuffer()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getCharacterEncoding()
public java.lang.String getContent()
throws java.io.IOException
java.io.IOException - if a conversion error occurs
public javax.servlet.ServletOutputStream getOutputStream()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
public java.io.PrintWriter getWriter()
throws java.io.IOException
java.io.IOException - if an I/O error occurspublic void reset()
public void resetBuffer()
public void setContentType(java.lang.String contentType)
contentType - The new content type
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||