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.
Modifier and Type | Field and Description |
---|---|
private ResponseWriter |
Access | Constructor and Description |
---|---|
public | ResponseWriterWrapper()
Deprecated
Use the other constructor taking the implementation being wrapped.
|
public | ResponseWriterWrapper(ResponseWriter
The implementation being wrapped. 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 |
---|---|
public ResponseWriter | cloneWithWriter(Writer
The writer)Writer that is the output destinationImplements abstract jakarta.
The default behavior of this method is to call |
public void | close()
Implements abstract java. Implements java.
The default behavior of this method is to call |
public void | endCDATA()
Overrides jakarta.
The default behavior of this method is to call |
public void | endDocument()
Implements abstract jakarta.
The default behavior of this method is to call |
public void | endElement(String
Name of the element to be ended name)Implements abstract jakarta.
The default behavior of this method is to call |
public void | flush()
Implements abstract jakarta. Implements java.
The default behavior of this method is to call |
public String | getCharacterEncoding()
Implements abstract jakarta.
The default behavior of this method is to call |
public String | getContentType()
Implements abstract jakarta.
The default behavior of this method is to call |
public ResponseWriter | getWrapped()
Implements jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped. |
public void | startCDATA()
Overrides jakarta.
The default behavior of this method is to call |
public void | startDocument()
Implements abstract jakarta.
The default behavior of this method is to call |
public void | startElement(String
Name of the element to be started name, UIComponent The component)UIComponent (if any) to which this element corresponds.
This component is inspected for its pass through attributes as described in the standard HTML_BASIC RenderKit specification.Implements abstract jakarta.
The default behavior of this method is to call
|
public void | write(char[]
Array of characters cbuf, int Offset from which to start writing characters off, int Number of characters to write len)Implements abstract java.
The default behavior of this method is to call |
public void | writeAttribute(String
Attribute name to be added name, Object Attribute value to be added value, String Name of the property or attribute (if any) of the property)UIComponent associated with the containing
element, to which this generated attribute correspondsImplements abstract jakarta.
The default behavior of this method is to call |
public void | writeComment(Object
Text content of the comment comment)Implements abstract jakarta.
The default behavior of this method is to call |
public void | writeDoctype(String
Text content of the doctype doctype)Overrides jakarta.
The default behavior of this method is to call |
public void | writePreamble(String
Text content of the preamble preamble)Overrides jakarta.
The default behavior of this method is to call |
public void | writeText(Object
Text to be written text, String Name of the property or attribute (if any) of the property)UIComponent associated with the containing
element, to which this generated text correspondsImplements abstract jakarta.
The default behavior of this method is to call |
public void | writeText(Object
Text to be written text, UIComponent The component, String UIComponent (if any) to which this element correspondsName of the property or attribute (if any) of the property)UIComponent associated with the containing
element, to which this generated text correspondsOverrides jakarta.
The default behavior of this method is to call |
public void | writeText(char[]
Text to be written text, int Starting offset (zero-relative) off, int Number of characters to be written len)Implements abstract jakarta.
The default behavior of this method is to call |
public void | writeURIAttribute(String
Attribute name to be added name, Object Attribute value to be added value, String Name of the property or attribute (if any) of the property)UIComponent associated with the containing
element, to which this generated attribute correspondsImplements abstract jakarta.
The default behavior of this method is to call |
wrapped | back to summary |
---|---|
private ResponseWriter wrapped |
ResponseWriterWrapper | back to summary |
---|---|
public ResponseWriterWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
|
ResponseWriterWrapper | back to summary |
---|---|
public ResponseWriterWrapper(ResponseWriter wrapped)
If this response writer has been decorated, the implementation doing the decorating should push the implementation
being wrapped to this constructor. The
|
cloneWithWriter | back to summary |
---|---|
public ResponseWriter cloneWithWriter(Writer writer) Implements abstract jakarta.
The default behavior of this method is to call
|
close | back to summary |
---|---|
public void close() throws IOException Implements abstract java. Implements java.
The default behavior of this method is to call
|
endCDATA | back to summary |
---|---|
public void endCDATA() throws IOException Overrides jakarta.
The default behavior of this method is to call
|
endDocument | back to summary |
---|---|
public void endDocument() throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
endElement | back to summary |
---|---|
public void endElement(String name) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
flush | back to summary |
---|---|
public void flush() throws IOException Implements abstract jakarta. Implements java.
The default behavior of this method is to call
|
getCharacterEncoding | back to summary |
---|---|
public String getCharacterEncoding() Implements abstract jakarta.
The default behavior of this method is to call
|
getContentType | back to summary |
---|---|
public String getContentType() Implements abstract jakarta.
The default behavior of this method is to call
|
getWrapped | back to summary |
---|---|
public ResponseWriter getWrapped() Implements jakarta. Doc from jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped.
|
startCDATA | back to summary |
---|---|
public void startCDATA() throws IOException Overrides jakarta.
The default behavior of this method is to call
|
startDocument | back to summary |
---|---|
public void startDocument() throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
startElement | back to summary |
---|---|
public void startElement(String name, UIComponent component) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
write | back to summary |
---|---|
public void write(char[] cbuf, int off, int len) throws IOException Implements abstract java.
The default behavior of this method is to call
|
writeAttribute | back to summary |
---|---|
public void writeAttribute(String name, Object value, String property) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
writeComment | back to summary |
---|---|
public void writeComment(Object comment) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
writeDoctype | back to summary |
---|---|
public void writeDoctype(String doctype) throws IOException Overrides jakarta.
The default behavior of this method is to call
|
writePreamble | back to summary |
---|---|
public void writePreamble(String preamble) throws IOException Overrides jakarta.
The default behavior of this method is to call
|
writeText | back to summary |
---|---|
public void writeText(Object text, String property) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
writeText | back to summary |
---|---|
public void writeText(Object text, UIComponent component, String property) throws IOException Overrides jakarta.
The default behavior of this method is to call
|
writeText | back to summary |
---|---|
public void writeText(char[] text, int off, int len) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|
writeURIAttribute | back to summary |
---|---|
public void writeURIAttribute(String name, Object value, String property) throws IOException Implements abstract jakarta.
The default behavior of this method is to call
|