|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InterweavingResponse
Allow content interweaving via Servlet or Porlet using a common interface.
Implementations of this interface must cache all content, beit byte or character following similar semantics of the Servlet and Porlet response classes. Buffered content should only be written when explicitly requested.
Method Summary | |
---|---|
void |
flushContentToWrappedResponse()
Flush the current buffered content to the wrapped response (this could be a Servlet or Portlet response) |
void |
flushToWriter(java.io.Writer writer,
java.lang.String encoding)
Flush the current buffered content to the provided Writer |
byte[] |
getBytes()
|
char[] |
getChars()
|
int |
getStatus()
|
boolean |
isBytes()
|
boolean |
isChars()
|
void |
resetBuffers()
Clear the internal buffers. |
Method Detail |
---|
void flushContentToWrappedResponse() throws java.io.IOException
java.io.IOException
- if content cannot be writtenvoid flushToWriter(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException
Writer
writer
- target Writer
encoding
- the encoding that should be used
java.io.IOException
- if content cannot be writtenvoid resetBuffers() throws java.io.IOException
java.io.IOException
- if some odd error occursboolean isBytes()
true
if content has been
written using an OutputStream
.boolean isChars()
true
if content has been
written using a Writer
.char[] getChars()
byte[] getBytes()
int getStatus()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |