public class HtmlResponseWriterImpl extends ResponseWriter
| Constructor and Description |
|---|
HtmlResponseWriterImpl(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) |
| Modifier and Type | Method and Description |
|---|---|
ResponseWriter |
cloneWithWriter(Writer writer) |
void |
close() |
void |
endCDATA() |
void |
endDocument() |
void |
endElement(String name) |
void |
flush() |
protected void |
forceFlush() |
String |
getCharacterEncoding() |
String |
getContentType() |
protected FacesContext |
getFacesContext() |
protected StreamCharBuffer |
getInternalBuffer() |
protected StreamCharBuffer |
getInternalBuffer(boolean reset) |
protected boolean |
getWrapScriptContentWithXmlCommentTag() |
String |
getWriterContentTypeMode() |
void |
startCDATA() |
void |
startDocument() |
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 |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
writeAttribute(String name,
Object value,
String componentPropertyName) |
void |
writeComment(Object value) |
void |
writeText(char[] cbuf,
int off,
int len) |
void |
writeText(Object value,
String componentPropertyName) |
void |
writeText(Object object,
UIComponent component,
String string)
This method ignores the
UIComponent provided and simply calls
writeText(Object,String) |
void |
writeURIAttribute(String name,
Object value,
String componentPropertyName) |
writeDoctype, writePreamblepublic HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding)
public HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag)
public HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding, boolean wrapScriptContentWithXmlCommentTag, String writerContentTypeMode) throws FacesException
FacesExceptionpublic static boolean supportsContentType(String contentType)
public String getContentType()
getContentType in class ResponseWriterpublic String getWriterContentTypeMode()
public String getCharacterEncoding()
getCharacterEncoding in class ResponseWriterpublic void flush()
throws IOException
flush in interface Flushableflush in class ResponseWriterIOExceptionpublic void startDocument()
startDocument in class ResponseWriterpublic void endDocument()
throws IOException
endDocument in class ResponseWriterIOExceptionpublic void startElement(String name, UIComponent uiComponent) throws IOException
startElement in class ResponseWriterIOExceptionpublic void startCDATA()
throws IOException
startCDATA in class ResponseWriterIOExceptionpublic void endCDATA()
throws IOException
endCDATA in class ResponseWriterIOExceptionpublic void endElement(String name) throws IOException
endElement in class ResponseWriterIOExceptionpublic void writeAttribute(String name, Object value, String componentPropertyName) throws IOException
writeAttribute in class ResponseWriterIOExceptionpublic void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException
writeURIAttribute in class ResponseWriterIOExceptionpublic void writeComment(Object value) throws IOException
writeComment in class ResponseWriterIOExceptionpublic void writeText(Object value, String componentPropertyName) throws IOException
writeText in class ResponseWriterIOExceptionpublic void writeText(char[] cbuf,
int off,
int len)
throws IOException
writeText in class ResponseWriterIOExceptionpublic ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter in class ResponseWriterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic void writeText(Object object, UIComponent component, String string) throws IOException
UIComponent provided and simply calls
writeText(Object,String)writeText in class ResponseWriterIOExceptionprotected StreamCharBuffer getInternalBuffer()
protected StreamCharBuffer getInternalBuffer(boolean reset)
protected FacesContext getFacesContext()
protected boolean getWrapScriptContentWithXmlCommentTag()
protected void forceFlush()
throws IOException
IOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.