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, writePreamble
public 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
FacesException
public static boolean supportsContentType(String contentType)
public String getContentType()
getContentType
in class ResponseWriter
public String getWriterContentTypeMode()
public String getCharacterEncoding()
getCharacterEncoding
in class ResponseWriter
public void flush() throws IOException
flush
in interface Flushable
flush
in class ResponseWriter
IOException
public void startDocument()
startDocument
in class ResponseWriter
public void endDocument() throws IOException
endDocument
in class ResponseWriter
IOException
public void startElement(String name, UIComponent uiComponent) throws IOException
startElement
in class ResponseWriter
IOException
public void startCDATA() throws IOException
startCDATA
in class ResponseWriter
IOException
public void endCDATA() throws IOException
endCDATA
in class ResponseWriter
IOException
public void endElement(String name) throws IOException
endElement
in class ResponseWriter
IOException
public void writeAttribute(String name, Object value, String componentPropertyName) throws IOException
writeAttribute
in class ResponseWriter
IOException
public void writeURIAttribute(String name, Object value, String componentPropertyName) throws IOException
writeURIAttribute
in class ResponseWriter
IOException
public void writeComment(Object value) throws IOException
writeComment
in class ResponseWriter
IOException
public void writeText(Object value, String componentPropertyName) throws IOException
writeText
in class ResponseWriter
IOException
public void writeText(char[] cbuf, int off, int len) throws IOException
writeText
in class ResponseWriter
IOException
public ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter
in class ResponseWriter
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException
public void writeText(Object object, UIComponent component, String string) throws IOException
UIComponent
provided and simply calls
writeText(Object,String)
writeText
in class ResponseWriter
IOException
protected StreamCharBuffer getInternalBuffer()
protected StreamCharBuffer getInternalBuffer(boolean reset)
protected FacesContext getFacesContext()
protected boolean getWrapScriptContentWithXmlCommentTag()
protected void forceFlush() throws IOException
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.