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.
| Constructor and Description |
|---|
TobagoResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract javax.faces.context.ResponseWriter |
cloneWithWriter(Writer writer) |
void |
endCDATA() |
abstract void |
endElement(HtmlElements name) |
abstract void |
endElement(String name)
Deprecated.
Should not directly called via this interface. There is be a special method which might be better.
|
void |
endJavascript()
Deprecated.
Should not be used, because it conflicts with CSP.
|
abstract void |
flush() |
String |
getContentTypeWithCharSet() |
void |
startCDATA() |
abstract void |
startElement(HtmlElements name) |
abstract void |
startElement(String name,
javax.faces.component.UIComponent component)
Deprecated.
Should not directly called via this interface. There is be a special method which might be better.
|
void |
startJavascript()
Deprecated.
Should not be used, because it conflicts with CSP.
|
abstract void |
write(String string) |
void |
writeAttribute(MarkupLanguageAttributes name,
boolean on)
Writes a boolean attribute.
|
abstract void |
writeAttribute(MarkupLanguageAttributes name,
HtmlTypes type) |
void |
writeAttribute(MarkupLanguageAttributes name,
Integer number)
Writes a
Integer attribute, if the value is not null. |
abstract void |
writeAttribute(MarkupLanguageAttributes name,
String string,
boolean escape)
Writes a string attribute.
|
abstract void |
writeAttribute(String name,
Object value,
String property)
Deprecated.
Should not directly called via this interface. There is be a special method which might be better.
|
void |
writeClassAttribute(CssItem first)
Write the class attribute.
|
void |
writeClassAttribute(CssItem first,
CssItem second)
Write the class attribute.
|
void |
writeClassAttribute(CssItem first,
CssItem second,
CssItem... others)
Write the class attribute.
|
void |
writeCommandMapAttribute(String map)
Write the command map data attribute.
|
abstract void |
writeComment(Object comment) |
void |
writeIcon(Icons icon,
CssItem... cssItems)
Writes an supported icon.
|
void |
writeIcon(Icons icon,
Style style,
CssItem... cssItems)
Writes an supported icon with explicit style information.
|
void |
writeIdAttribute(String id)
Write the id attribute.
|
void |
writeJavascript(String script)
Deprecated.
Should not be used, because it conflicts with CSP.
|
void |
writeNameAttribute(String name)
Write the name attribute.
|
void |
writeStyleAttribute(String style)
Deprecated.
since 1.5.0, use writeStyleAttribute(Style) instead.
|
void |
writeStyleAttribute(Style style)
Write the style attribute.
|
abstract void |
writeText(Object text,
String property)
Deprecated.
Should not directly called via this interface. There is be a special method which might be better.
|
void |
writeText(String text)
Write text content.
|
abstract void |
writeURIAttribute(MarkupLanguageAttributes name,
String string)
Writes a string attribute URL encoded.
|
abstract void |
writeURIAttribute(String name,
Object value,
String property)
Deprecated.
Should not directly called via this interface. There is be a special method which might be better.
|
endDocument, getCharacterEncoding, getContentType, startDocument, writeText, writeText@Deprecated public abstract void startElement(String name, javax.faces.component.UIComponent component) throws IOException
startElement in class javax.faces.context.ResponseWriterIOExceptionpublic abstract void startElement(HtmlElements name) throws IOException
IOException@Deprecated public abstract void endElement(String name) throws IOException
endElement in class javax.faces.context.ResponseWriterIOExceptionpublic abstract void endElement(HtmlElements name) throws IOException
IOExceptionpublic abstract void write(String string) throws IOException
write in class WriterIOExceptionpublic abstract void writeComment(Object comment) throws IOException
writeComment in class javax.faces.context.ResponseWriterIOExceptionpublic abstract javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter in class javax.faces.context.ResponseWriter@Deprecated public abstract void writeAttribute(String name, Object value, String property) throws IOException
writeAttribute in class javax.faces.context.ResponseWriterIOException@Deprecated public abstract void writeURIAttribute(String name, Object value, String property) throws IOException
writeURIAttribute in class javax.faces.context.ResponseWriterIOException@Deprecated public abstract void writeText(Object text, String property) throws IOException
writeText in class javax.faces.context.ResponseWriterIOExceptionpublic abstract void flush()
throws IOException
flush in interface Flushableflush in class javax.faces.context.ResponseWriterIOExceptionpublic abstract void writeAttribute(MarkupLanguageAttributes name, String string, boolean escape) throws IOException
IOExceptionpublic abstract void writeAttribute(MarkupLanguageAttributes name, HtmlTypes type) throws IOException
IOExceptionpublic abstract void writeURIAttribute(MarkupLanguageAttributes name, String string) throws IOException
IOExceptionpublic void writeAttribute(MarkupLanguageAttributes name, boolean on) throws IOException
IOExceptionpublic void writeAttribute(MarkupLanguageAttributes name, Integer number) throws IOException
Integer attribute, if the value is not null. The value will not be escaped.IOExceptionpublic void writeIdAttribute(String id) throws IOException
IOExceptionpublic void writeNameAttribute(String name) throws IOException
IOExceptionpublic void writeClassAttribute(CssItem first) throws IOException
IOExceptionpublic void writeCommandMapAttribute(String map) throws IOException
IOExceptionpublic void writeClassAttribute(CssItem first, CssItem second) throws IOException
IOExceptionpublic void writeClassAttribute(CssItem first, CssItem second, CssItem... others) throws IOException
IOExceptionpublic void writeStyleAttribute(Style style) throws IOException
IOException@Deprecated public void writeStyleAttribute(String style) throws IOException
IOExceptionpublic void writeIcon(Icons icon, CssItem... cssItems) throws IOException
IOExceptionpublic void writeIcon(Icons icon, Style style, CssItem... cssItems) throws IOException
IOException@Deprecated public void writeJavascript(String script) throws IOException
IOException@Deprecated public void endJavascript() throws IOException
IOException@Deprecated public void startJavascript() throws IOException
IOExceptionpublic void writeText(String text) throws IOException
IOExceptionpublic String getContentTypeWithCharSet()
public void startCDATA()
throws IOException
startCDATA in class javax.faces.context.ResponseWriterIOExceptionpublic void endCDATA()
throws IOException
endCDATA in class javax.faces.context.ResponseWriterIOExceptionCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.