Class HtmlResponseWriterImpl
java.lang.Object
java.io.Writer
jakarta.faces.context.ResponseWriter
org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Direct Known Subclasses:
EarlyFlushHtmlResponseWriterImpl
,HtmlBufferResponseWriterWrapper
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlResponseWriterImpl
(Writer writer, String contentType, String characterEncoding) HtmlResponseWriterImpl
(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag) HtmlResponseWriterImpl
(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) -
Method Summary
Modifier and TypeMethodDescriptioncloneWithWriter
(Writer writer) void
close()
void
endCDATA()
void
void
endElement
(String name) void
flush()
protected void
protected FacesContext
protected StreamCharBuffer
protected StreamCharBuffer
getInternalBuffer
(boolean reset) protected boolean
void
void
void
startElement
(String name, UIComponent uiComponent) static boolean
supportsContentType
(String contentType) void
write
(char[] cbuf) void
write
(char[] cbuf, int off, int len) void
write
(int c) void
void
void
writeAttribute
(String name, Object value, String componentPropertyName) void
writeComment
(Object value) void
writeText
(char[] cbuf, int off, int len) void
writeText
(Object object, UIComponent component, String string) This method ignores theUIComponent
provided and simply callswriteText(Object,String)
void
void
writeURIAttribute
(String name, Object value, String componentPropertyName) Methods inherited from class jakarta.faces.context.ResponseWriter
writeDoctype, writePreamble
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
HtmlResponseWriterImpl
-
HtmlResponseWriterImpl
-
HtmlResponseWriterImpl
public HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
FacesException
-
-
Method Details
-
supportsContentType
-
getContentType
- Specified by:
getContentType
in classResponseWriter
-
getWriterContentTypeMode
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in classResponseWriter
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classResponseWriter
- Throws:
IOException
-
startDocument
public void startDocument()- Specified by:
startDocument
in classResponseWriter
-
endDocument
- Specified by:
endDocument
in classResponseWriter
- Throws:
IOException
-
startElement
- Specified by:
startElement
in classResponseWriter
- Throws:
IOException
-
startCDATA
- Overrides:
startCDATA
in classResponseWriter
- Throws:
IOException
-
endCDATA
- Overrides:
endCDATA
in classResponseWriter
- Throws:
IOException
-
endElement
- Specified by:
endElement
in classResponseWriter
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeAttribute
in classResponseWriter
- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException - Specified by:
writeURIAttribute
in classResponseWriter
- Throws:
IOException
-
writeComment
- Specified by:
writeComment
in classResponseWriter
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
writeText
- Specified by:
writeText
in classResponseWriter
- Throws:
IOException
-
cloneWithWriter
- Specified by:
cloneWithWriter
in classResponseWriter
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
writeText
This method ignores theUIComponent
provided and simply callswriteText(Object,String)
- Overrides:
writeText
in classResponseWriter
- Throws:
IOException
- Since:
- 1.2
-
getInternalBuffer
-
getInternalBuffer
-
getFacesContext
-
getWrapScriptContentWithXmlCommentTag
protected boolean getWrapScriptContentWithXmlCommentTag() -
forceFlush
- Throws:
IOException
-