@Override public ResponseWriter cloneWithWriter(Writer writer) { EarlyFlushHtmlResponseWriterImpl newWriter = new EarlyFlushHtmlResponseWriterImpl(writer, getContentType(), getCharacterEncoding(), getWrapScriptContentWithXmlCommentTag(), getWriterContentTypeMode()); return newWriter; }
@Override public void flush() throws IOException { super.flush(); if (_endHeadTag) { FacesContext facesContext = getFacesContext(); if (!facesContext.getPartialViewContext().isAjaxRequest() && !facesContext.getPartialViewContext().isPartialRequest()) { forceFlush(); } } } }
facesContext.isProjectStage(ProjectStage.Production)) return new EarlyFlushHtmlResponseWriterImpl(writer, selectedContentType, characterEncoding, myfacesConfig.isWrapScriptContentWithXmlCommentTag(), writerContentType);