Package javax.faces.context
Class ResponseWriterWrapper
- java.lang.Object
-
- java.io.Writer
-
- javax.faces.context.ResponseWriter
-
- javax.faces.context.ResponseWriterWrapper
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,FacesWrapper<ResponseWriter>
- Direct Known Subclasses:
PartialResponseWriter
public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter>
see Javadoc of JSF Specification
-
-
Constructor Summary
Constructors Constructor Description ResponseWriterWrapper()Deprecated.ResponseWriterWrapper(ResponseWriter delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWritercloneWithWriter(Writer writer)voidclose()voidendCDATA()voidendDocument()voidendElement(String name)voidflush()StringgetCharacterEncoding()StringgetContentType()ResponseWritergetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.voidstartCDATA()voidstartDocument()voidstartElement(String name, UIComponent component)voidwrite(char[] cbuf, int off, int len)voidwriteAttribute(String name, Object value, String property)voidwriteComment(Object comment)voidwriteDoctype(String doctype)voidwritePreamble(String preamble)voidwriteText(char[] text, int off, int len)voidwriteText(Object text, String property)voidwriteText(Object object, UIComponent component, String string)voidwriteURIAttribute(String name, Object value, String property)
-
-
-
Constructor Detail
-
ResponseWriterWrapper
@Deprecated public ResponseWriterWrapper()
Deprecated.
-
ResponseWriterWrapper
public ResponseWriterWrapper(ResponseWriter delegate)
-
-
Method Detail
-
cloneWithWriter
public ResponseWriter cloneWithWriter(Writer writer)
- Specified by:
cloneWithWriterin classResponseWriter
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
endCDATA
public void endCDATA() throws IOException- Overrides:
endCDATAin classResponseWriter- Throws:
IOException
-
endDocument
public void endDocument() throws IOException- Specified by:
endDocumentin classResponseWriter- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Specified by:
endElementin classResponseWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classResponseWriter- Throws:
IOException
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncodingin classResponseWriter
-
getContentType
public String getContentType()
- Specified by:
getContentTypein classResponseWriter
-
getWrapped
public ResponseWriter getWrapped()
Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrappedin interfaceFacesWrapper<ResponseWriter>- Returns:
- the instance of the class being wrapped
-
startCDATA
public void startCDATA() throws IOException- Overrides:
startCDATAin classResponseWriter- Throws:
IOException
-
startDocument
public void startDocument() throws IOException- Specified by:
startDocumentin classResponseWriter- Throws:
IOException
-
startElement
public void startElement(String name, UIComponent component) throws IOException
- Specified by:
startElementin classResponseWriter- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
- Specified by:
writeAttributein classResponseWriter- Throws:
IOException
-
writeComment
public void writeComment(Object comment) throws IOException
- Specified by:
writeCommentin classResponseWriter- Throws:
IOException
-
writeText
public void writeText(char[] text, int off, int len) throws IOException- Specified by:
writeTextin classResponseWriter- Throws:
IOException
-
writeText
public void writeText(Object text, String property) throws IOException
- Specified by:
writeTextin classResponseWriter- Throws:
IOException
-
writeText
public void writeText(Object object, UIComponent component, String string) throws IOException
- Overrides:
writeTextin classResponseWriter- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
- Specified by:
writeURIAttributein classResponseWriter- Throws:
IOException
-
writeDoctype
public void writeDoctype(String doctype) throws IOException
- Overrides:
writeDoctypein classResponseWriter- Throws:
IOException
-
writePreamble
public void writePreamble(String preamble) throws IOException
- Overrides:
writePreamblein classResponseWriter- Throws:
IOException
-
-