public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter>
Provides a simple implementation
of ResponseWriter
that
can be subclassed by developers wishing to provide specialized
behavior to an existing ResponseWriter
instance. The default
implementation of all methods is to call through to the wrapped
ResponseWriter
.
Usage: extend this class and push the implementation being wrapped to the
constructor and use getWrapped()
to access the instance being wrapped.
Constructor and Description |
---|
ResponseWriterWrapper()
Deprecated.
Use the other constructor taking the implementation being wrapped.
|
ResponseWriterWrapper(ResponseWriter wrapped)
If this response writer has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
Modifier and Type | Method and Description |
---|---|
ResponseWriter |
cloneWithWriter(Writer writer)
The default behavior of this method is to
call
ResponseWriter.cloneWithWriter(java.io.Writer)
on the wrapped ResponseWriter object. |
void |
close()
The default behavior of this method is to
call
Writer.close()
on the wrapped ResponseWriter object. |
void |
endCDATA()
The default behavior of this method
is to call |
void |
endDocument()
The default behavior of this method is to
call
ResponseWriter.endDocument()
on the wrapped ResponseWriter object. |
void |
endElement(String name)
The default behavior of this method is to
call
ResponseWriter.endElement(String)
on the wrapped ResponseWriter object. |
void |
flush()
The default behavior of this method is to
call
ResponseWriter.flush()
on the wrapped ResponseWriter object. |
String |
getCharacterEncoding()
The default behavior of this method is to
call
ResponseWriter.getCharacterEncoding()
on the wrapped ResponseWriter object. |
String |
getContentType()
The default behavior of this method is to
call
ResponseWriter.getContentType()
on the wrapped ResponseWriter object. |
ResponseWriter |
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped. |
void |
startCDATA()
The default behavior of this method
is to call |
void |
startDocument()
The default behavior of this method is to
call
ResponseWriter.startDocument()
on the wrapped ResponseWriter object. |
void |
startElement(String name,
UIComponent component)
The default behavior of this method is to
call
ResponseWriter.startElement(String, javax.faces.component.UIComponent)
on the wrapped ResponseWriter object. |
void |
write(char[] cbuf,
int off,
int len)
The default behavior of this method is to
call
Writer.write(char[], int, int)
on the wrapped ResponseWriter object. |
void |
writeAttribute(String name,
Object value,
String property)
The default behavior of this method is to
call
ResponseWriter.writeAttribute(String, Object, String)
on the wrapped ResponseWriter object. |
void |
writeComment(Object comment)
The default behavior of this method is to
call
ResponseWriter.writeComment(Object)
on the wrapped ResponseWriter object. |
void |
writeDoctype(String doctype)
The default behavior of this method is to
call
ResponseWriter.writeDoctype(java.lang.String)
on the wrapped ResponseWriter object. |
void |
writePreamble(String preamble)
The default behavior of this method is to
call ResponseWriter.writePreamble(java.lang.String)
on the wrapped |