Package org.apache.myfaces.tobago.webapp
Class TobagoResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.myfaces.tobago.webapp.TobagoResponseWriter
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
- Direct Known Subclasses:
- DebugResponseWriterWrapper,- TobagoResponseWriterBase,- TobagoResponseWriterWrapper
public abstract class TobagoResponseWriter
extends javax.faces.context.ResponseWriter
This provides an alternative ResponseWriter interfaces, which allows optimizations. E. g. some attributes needed to to be escaped.
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract javax.faces.context.ResponseWritercloneWithWriter(Writer writer) voidendCDATA()abstract voidendElement(String name) Deprecated.Should not directly called via this interface.abstract voidendElement(HtmlElements name) abstract voidflush()voidabstract voidstartElement(String name, javax.faces.component.UIComponent component) Deprecated.Should not directly called via this interface.abstract voidstartElement(HtmlElements name) abstract voidabstract voidwriteAttribute(String name, Object value, String property) Deprecated.since 1.0.11, should not directly called via this interface.voidwriteAttribute(MarkupLanguageAttributes name, boolean on) Writes a boolean attribute.voidwriteAttribute(MarkupLanguageAttributes name, Integer number) Writes aIntegerattribute, if the value is notnull.abstract voidwriteAttribute(MarkupLanguageAttributes name, String string, boolean escape) Writes a string attribute.abstract voidwriteAttribute(MarkupLanguageAttributes name, HtmlTypes type) voidwriteClassAttribute(CssItem... first) Write the class attribute.voidwriteClassAttribute(CssItem first, CssItem[] second, CssItem... third) Write the class attribute.voidwriteClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem... fourth) Write the class attribute.voidwriteClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem[] fourth, CssItem... fifth) Write the class attribute.voidwriteClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem[] fourth, CssItem[] fifth, CssItem... sixth) voidabstract voidwriteComment(Object comment) voidWrite the id attribute.voidwriteNameAttribute(String name) Write the name attribute.abstract voidDeprecated.Should not directly called via this interface.voidWrite text content.abstract voidwriteURIAttribute(String name, Object value, String property) Deprecated.since 1.0.11, should not directly called via this interface.abstract voidwriteURIAttribute(MarkupLanguageAttributes name, String string) Writes a string attribute URL encoded.Methods inherited from class javax.faces.context.ResponseWriterendDocument, getCharacterEncoding, getContentType, startDocument, writeDoctype, writePreamble, writeText, writeText
- 
Constructor Details- 
TobagoResponseWriterpublic TobagoResponseWriter()
 
- 
- 
Method Details- 
startElement@Deprecated public abstract void startElement(String name, javax.faces.component.UIComponent component) throws IOException Deprecated.Should not directly called via this interface. There is be a special method which might be better.- Specified by:
- startElementin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
startElement- Throws:
- IOException
 
- 
endElementDeprecated.Should not directly called via this interface. There is be a special method which might be better.- Specified by:
- endElementin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
endElement- Throws:
- IOException
 
- 
write- Overrides:
- writein class- Writer
- Throws:
- IOException
 
- 
writeComment- Specified by:
- writeCommentin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
cloneWithWriter- Specified by:
- cloneWithWriterin class- javax.faces.context.ResponseWriter
 
- 
writeAttribute@Deprecated public abstract void writeAttribute(String name, Object value, String property) throws IOException Deprecated.since 1.0.11, should not directly called via this interface. There is be a special method which might be better.- Specified by:
- writeAttributein class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
writeURIAttribute@Deprecated public abstract void writeURIAttribute(String name, Object value, String property) throws IOException Deprecated.since 1.0.11, should not directly called via this interface. There is be a special method which might be better.- Specified by:
- writeURIAttributein class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
writeTextDeprecated.Should not directly called via this interface. There is be a special method which might be better.- Specified by:
- writeTextin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
flush- Specified by:
- flushin interface- Flushable
- Specified by:
- flushin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
writeAttributepublic abstract void writeAttribute(MarkupLanguageAttributes name, String string, boolean escape) throws IOException Writes a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.- Throws:
- IOException
 
- 
writeAttributepublic abstract void writeAttribute(MarkupLanguageAttributes name, HtmlTypes type) throws IOException - Throws:
- IOException
 
- 
writeURIAttributepublic abstract void writeURIAttribute(MarkupLanguageAttributes name, String string) throws IOException Writes a string attribute URL encoded.- Throws:
- IOException
 
- 
writeAttributeWrites a boolean attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeAttributeWrites aIntegerattribute, if the value is notnull. The value will not be escaped.- Throws:
- IOException
 
- 
writeIdAttributeWrite the id attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeNameAttributeWrite the name attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeCommandMapAttributeDeprecated.Write the command map data attribute.- Throws:
- IOException
 
- 
writeClassAttributeWrite the class attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeClassAttributepublic void writeClassAttribute(CssItem first, CssItem[] second, CssItem... third) throws IOException Write the class attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeClassAttributepublic void writeClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem... fourth) throws IOException Write the class attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeClassAttributepublic void writeClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem[] fourth, CssItem... fifth) throws IOException Write the class attribute. The value will not escaped.- Throws:
- IOException
 
- 
writeClassAttributepublic void writeClassAttribute(CssItem first, CssItem[] second, CssItem[] third, CssItem[] fourth, CssItem[] fifth, CssItem... sixth) throws IOException - Throws:
- IOException
 
- 
writeTextWrite text content. The text will be escaped.- Throws:
- IOException
 
- 
getContentTypeWithCharSet
- 
startCDATA- Overrides:
- startCDATAin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
- 
endCDATA- Overrides:
- endCDATAin class- javax.faces.context.ResponseWriter
- Throws:
- IOException
 
 
-