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 ResponseWriter
cloneWithWriter(Writer writer)
void
close()
void
endCDATA()
void
endDocument()
void
endElement(String name)
void
flush()
String
getCharacterEncoding()
String
getContentType()
ResponseWriter
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.void
startCDATA()
void
startDocument()
void
startElement(String name, UIComponent component)
void
write(char[] cbuf, int off, int len)
void
writeAttribute(String name, Object value, String property)
void
writeComment(Object comment)
void
writeDoctype(String doctype)
void
writePreamble(String preamble)
void
writeText(char[] text, int off, int len)
void
writeText(Object text, String property)
void
writeText(Object object, UIComponent component, String string)
void
writeURIAttribute(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:
cloneWithWriter
in classResponseWriter
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
endCDATA
public void endCDATA() throws IOException
- Overrides:
endCDATA
in classResponseWriter
- Throws:
IOException
-
endDocument
public void endDocument() throws IOException
- Specified by:
endDocument
in classResponseWriter
- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Specified by:
endElement
in classResponseWriter
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classResponseWriter
- Throws:
IOException
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in classResponseWriter
-
getContentType
public String getContentType()
- Specified by:
getContentType
in classResponseWriter
-
getWrapped
public ResponseWriter getWrapped()
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrapped
in interfaceFacesWrapper<ResponseWriter>
- Returns:
- the instance of the class being wrapped
-
startCDATA
public void startCDATA() throws IOException
- Overrides:
startCDATA
in classResponseWriter
- Throws:
IOException
-
startDocument
public void startDocument() throws IOException
- Specified by:
startDocument
in classResponseWriter
- Throws:
IOException
-
startElement
public void startElement(String name, UIComponent component) throws IOException
- Specified by:
startElement
in classResponseWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
- Specified by:
writeAttribute
in classResponseWriter
- Throws:
IOException
-
writeComment
public void writeComment(Object comment) throws IOException
- Specified by:
writeComment
in classResponseWriter
- Throws:
IOException
-
writeText
public void writeText(char[] text, int off, int len) throws IOException
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
writeText
public void writeText(Object text, String property) throws IOException
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
writeText
public void writeText(Object object, UIComponent component, String string) throws IOException
- Overrides:
writeText
in classResponseWriter
- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
- Specified by:
writeURIAttribute
in classResponseWriter
- Throws:
IOException
-
writeDoctype
public void writeDoctype(String doctype) throws IOException
- Overrides:
writeDoctype
in classResponseWriter
- Throws:
IOException
-
writePreamble
public void writePreamble(String preamble) throws IOException
- Overrides:
writePreamble
in classResponseWriter
- Throws:
IOException
-
-