Class EarlyFlushHtmlResponseWriterImpl
- java.lang.Object
- 
- java.io.Writer
- 
- jakarta.faces.context.ResponseWriter
- 
- org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl
- 
- org.apache.myfaces.renderkit.html.EarlyFlushHtmlResponseWriterImpl
 
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
 
 public class EarlyFlushHtmlResponseWriterImpl extends HtmlResponseWriterImpl This implementation is just the default html response writer with the early flush logic. The idea is detect when the end "head" element is rendered and in that moment, when the flush call is done, force the flush of the current underlying writer.- Author:
- Leonardo Uribe
 
- 
- 
Constructor SummaryConstructors Constructor Description EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding)EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag)EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseWritercloneWithWriter(Writer writer)voidendElement(String name)voidflush()voidstartElement(String name, UIComponent uiComponent)- 
Methods inherited from class org.apache.myfaces.renderkit.html.HtmlResponseWriterImplclose, endCDATA, endDocument, forceFlush, getCharacterEncoding, getContentType, getFacesContext, getInternalBuffer, getInternalBuffer, getWrapScriptContentWithXmlCommentTag, getWriterContentTypeMode, startCDATA, startDocument, supportsContentType, write, write, write, write, write, writeAttribute, writeComment, writeText, writeText, writeText, writeURIAttribute
 - 
Methods inherited from class jakarta.faces.context.ResponseWriterwriteDoctype, writePreamble
 - 
Methods inherited from class java.io.Writerappend, append, append, nullWriter
 
- 
 
- 
- 
- 
Constructor Detail- 
EarlyFlushHtmlResponseWriterImplpublic EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding) 
 - 
EarlyFlushHtmlResponseWriterImplpublic EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag) 
 - 
EarlyFlushHtmlResponseWriterImplpublic EarlyFlushHtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException - Throws:
- FacesException
 
 
- 
 - 
Method Detail- 
cloneWithWriterpublic ResponseWriter cloneWithWriter(Writer writer) - Overrides:
- cloneWithWriterin class- HtmlResponseWriterImpl
 
 - 
startElementpublic void startElement(String name, UIComponent uiComponent) throws IOException - Overrides:
- startElementin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
 - 
endElementpublic void endElement(String name) throws IOException - Overrides:
- endElementin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
 - 
flushpublic void flush() throws IOException- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- HtmlResponseWriterImpl
- Throws:
- IOException
 
 
- 
 
-