Class TobagoResponseWriterBase
- java.lang.Object
-
- java.io.Writer
-
- javax.faces.context.ResponseWriter
-
- org.apache.myfaces.tobago.webapp.TobagoResponseWriter
-
- org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Direct Known Subclasses:
HtmlResponseWriter,XmlResponseWriter
public abstract class TobagoResponseWriterBase extends TobagoResponseWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringXML_VERSION_1_0_ENCODING_UTF_8protected static char[]XML_VERSION_1_0_ENCODING_UTF_8_CHARS
-
Constructor Summary
Constructors Modifier Constructor Description protectedTobagoResponseWriterBase(Writer writer, String contentType, String characterEncoding)Deprecated.since 4.3.0protectedTobagoResponseWriterBase(Writer writer, String contentType, Charset charset)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()protected abstract voidcloseEmptyTag()protected voidcloseOpenTag()voidendDocument()voidendElement(String name)voidendElement(HtmlElements name)protected voidendElementInternal(Writer sink, String name, boolean inline)protected StringfindValue(Object value, String property)voidflush()protected StringgetCallingClassStackTraceElementString()StringgetCharacterEncoding()protected javax.faces.component.UIComponentgetComponent()StringgetContentType()protected WritergetWriter()protected voidhandlePassThroughAttributes()protected booleanisStartStillOpen()protected voidsetComponent(javax.faces.component.UIComponent component)protected voidsetStartStillOpen(boolean startStillOpen)voidstartDocument()voidstartElement(String name, javax.faces.component.UIComponent currentComponent)voidstartElement(HtmlElements name)voidstartElement(HtmlElements name, javax.faces.component.UIComponent currentComponent)protected voidstartElementInternal(Writer sink, String name, boolean inline)voidwrite(char[] chars)voidwrite(char[] cbuf, int off, int len)voidwrite(int j)voidwrite(String string)voidwrite(String string, int j, int k)voidwriteAttribute(String name, Object value, String property)Deprecated.since 3.0.0voidwriteAttribute(MarkupLanguageAttributes name, String value, boolean escape)Writes a string attribute.voidwriteAttribute(MarkupLanguageAttributes name, HtmlTypes types)protected voidwriteAttributeInternal(Writer sink, MarkupLanguageAttributes name, String value, boolean escape)voidwriteComment(Object obj)protected voidwriteInternal(Writer sink, String string)protected abstract voidwriterAttributeValue(String value, boolean escape)voidwriteURIAttribute(String name, Object value, String property)voidwriteURIAttribute(MarkupLanguageAttributes name, String value)Writes a string attribute URL encoded.-
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
cloneWithWriter, endCDATA, getContentTypeWithCharSet, startCDATA, writeAttribute, writeAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeCommandMapAttribute, writeIdAttribute, writeNameAttribute, writeText, writeText
-
Methods inherited from class javax.faces.context.ResponseWriter
writeDoctype, writePreamble, writeText, writeText
-
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
-
-
-
Field Detail
-
XML_VERSION_1_0_ENCODING_UTF_8
protected static final String XML_VERSION_1_0_ENCODING_UTF_8
- See Also:
- Constant Field Values
-
XML_VERSION_1_0_ENCODING_UTF_8_CHARS
protected static final char[] XML_VERSION_1_0_ENCODING_UTF_8_CHARS
-
-
Method Detail
-
getWriter
protected final Writer getWriter()
-
getComponent
protected final javax.faces.component.UIComponent getComponent()
-
setComponent
protected final void setComponent(javax.faces.component.UIComponent component)
-
isStartStillOpen
protected final boolean isStartStillOpen()
-
setStartStillOpen
protected final void setStartStillOpen(boolean startStillOpen)
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
write
public void write(String string) throws IOException
- Specified by:
writein classTobagoResponseWriter- Throws:
IOException
-
writeInternal
protected final void writeInternal(Writer sink, String string) throws IOException
- Throws:
IOException
-
write
public void write(int j) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char[] chars) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(String string, int j, int k) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classTobagoResponseWriter- Throws:
IOException
-
closeOpenTag
protected void closeOpenTag() throws IOException- Throws:
IOException
-
handlePassThroughAttributes
protected void handlePassThroughAttributes() throws IOException- Throws:
IOException
-
startDocument
public void startDocument() throws IOException- Specified by:
startDocumentin classjavax.faces.context.ResponseWriter- Throws:
IOException
-
endDocument
public void endDocument() throws IOException- Specified by:
endDocumentin classjavax.faces.context.ResponseWriter- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentTypein classjavax.faces.context.ResponseWriter
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncodingin classjavax.faces.context.ResponseWriter
-
startElement
public void startElement(String name, javax.faces.component.UIComponent currentComponent) throws IOException
- Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElement
public void startElement(HtmlElements name, javax.faces.component.UIComponent currentComponent) throws IOException
- Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElement
public void startElement(HtmlElements name) throws IOException
- Specified by:
startElementin classTobagoResponseWriter- Throws:
IOException
-
startElementInternal
protected void startElementInternal(Writer sink, String name, boolean inline) throws IOException
- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Specified by:
endElementin classTobagoResponseWriter- Throws:
IOException
-
endElement
public void endElement(HtmlElements name) throws IOException
- Specified by:
endElementin classTobagoResponseWriter- Throws:
IOException
-
writeComment
public void writeComment(Object obj) throws IOException
- Specified by:
writeCommentin classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
@Deprecated public void writeAttribute(String name, Object value, String property) throws IOException
Deprecated.since 3.0.0- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
getCallingClassStackTraceElementString
protected final String getCallingClassStackTraceElementString()
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
- Specified by:
writeURIAttributein classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
public void writeAttribute(MarkupLanguageAttributes name, String value, boolean escape) throws IOException
Description copied from class:TobagoResponseWriterWrites a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
writeAttribute
public void writeAttribute(MarkupLanguageAttributes name, HtmlTypes types) throws IOException
- Specified by:
writeAttributein classTobagoResponseWriter- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(MarkupLanguageAttributes name, String value) throws IOException
Description copied from class:TobagoResponseWriterWrites a string attribute URL encoded.- Specified by:
writeURIAttributein classTobagoResponseWriter- Throws:
IOException
-
endElementInternal
protected void endElementInternal(Writer sink, String name, boolean inline) throws IOException
- Throws:
IOException
-
closeEmptyTag
protected abstract void closeEmptyTag() throws IOException- Throws:
IOException
-
writeAttributeInternal
protected void writeAttributeInternal(Writer sink, MarkupLanguageAttributes name, String value, boolean escape) throws IOException
- Throws:
IOException
-
writerAttributeValue
protected abstract void writerAttributeValue(String value, boolean escape) throws IOException
- Throws:
IOException
-
-