public abstract class

TobagoResponseWriter

extends ResponseWriter
java.lang.Object
   ↳ java.io.Writer
     ↳ javax.faces.context.ResponseWriter
       ↳ org.apache.myfaces.tobago.webapp.TobagoResponseWriter

Class Overview

This provides an alternative ResponseWriter interfaces, which allows optimizations. E. g. some attributes needed to to be escaped.

Date: 08.05.2007 13:51:43

Summary

[Expand]
Inherited Fields
From class java.io.Writer
Public Constructors
TobagoResponseWriter()
Public Methods
abstract ResponseWriter cloneWithWriter(Writer writer)
abstract void endElement(String name)
void endJavascript()
abstract void flush()
String getContentTypeWithCharSet()
abstract String getStyleClasses()
void startElement(String name)
This method is deprecated. Use startElement(name, null) instead.
abstract void startElement(String name, UIComponent component)
void startJavascript()
abstract void write(String string)
void writeAttribute(String name, boolean on)
Writes a boolean attribute.
void writeAttribute(String name, int number)
Writes a integer attribute.
abstract void writeAttribute(String name, Object value, String property)
This method is deprecated. Should not directly called via this interface. There is be a special method which might be better.
abstract void writeAttribute(String name, String string, boolean escape)
Writes a string attribute.
void writeAttributeFromComponent(String name, String property)
Writes a propery as attribute.
abstract void writeClassAttribute()
This method is deprecated. since Tobago 1.5.0
void writeClassAttribute(String cssClass)
This method is deprecated. since Tobago 1.5.0
void writeClassAttribute(Classes classes)
Write the class attribute.
void writeClassAttribute(StyleClasses styleClasses)
This method is deprecated. since Tobago 1.5.0
abstract void writeComment(Object comment)
void writeIdAttribute(String id)
Write the id attribute.
void writeJavascript(String script)
void writeNameAttribute(String name)
Write the name attribute.
void writeStyleAttribute(String style)
This method is deprecated. since 1.5.0, use writeStyleAttribute(Style) instead.
void writeStyleAttribute(Style style)
Write the style attribute.
abstract void writeText(Object text, String property)
This method is 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.
void writeTextFromComponent(String property)
Writes a property as text.
[Expand]
Inherited Methods
From class javax.faces.context.ResponseWriter
From class java.io.Writer
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable
From interface java.lang.Appendable

Public Constructors

public TobagoResponseWriter ()

Public Methods

public abstract ResponseWriter cloneWithWriter (Writer writer)

public abstract void endElement (String name)

Throws
IOException

public void endJavascript ()

Throws
IOException

public abstract void flush ()

Throws
IOException

public String getContentTypeWithCharSet ()

public abstract String getStyleClasses ()

public void startElement (String name)

This method is deprecated.
Use startElement(name, null) instead.

Throws
IOException

public abstract void startElement (String name, UIComponent component)

Throws
IOException

public void startJavascript ()

Throws
IOException

public abstract void write (String string)

Throws
IOException

public void writeAttribute (String name, boolean on)

Writes a boolean attribute. The value will not escaped.

Throws
IOException

public void writeAttribute (String name, int number)

Writes a integer attribute. The value will not escaped.

Throws
IOException

public abstract void writeAttribute (String name, Object value, String property)

This method is deprecated.
Should not directly called via this interface. There is be a special method which might be better.

Throws
IOException

public abstract void writeAttribute (String name, String string, boolean escape)

Writes a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.

Throws
IOException

public void writeAttributeFromComponent (String name, String property)

Writes a propery as attribute. The value will be escaped.

Throws
IOException

public abstract void writeClassAttribute ()

This method is deprecated.
since Tobago 1.5.0

Write the class attribute. The value will not escaped.

Throws
IOException

public void writeClassAttribute (String cssClass)

This method is deprecated.
since Tobago 1.5.0

Write the class attribute. The value will not escaped.

Throws
IOException

public void writeClassAttribute (Classes classes)

Write the class attribute. The value will not escaped.
Note: For backward compatibility the value of the Attribute STYLE_CLASS will be inserted additionally. This function will be removed in later releases.

Parameters
classes The abstract representation of the css class string, normally created by the renderer.
Throws
IOException

public void writeClassAttribute (StyleClasses styleClasses)

This method is deprecated.
since Tobago 1.5.0

Write the class attribute. The value will not escaped.

Throws
IOException

public abstract void writeComment (Object comment)

Throws
IOException

public void writeIdAttribute (String id)

Write the id attribute. The value will not escaped.

Throws
IOException

public void writeJavascript (String script)

Throws
IOException

public void writeNameAttribute (String name)

Write the name attribute. The value will not escaped.

Throws
IOException

public void writeStyleAttribute (String style)

This method is deprecated.
since 1.5.0, use writeStyleAttribute(Style) instead.

Write the style attribute. The value will not escaped.

Throws
IOException

public void writeStyleAttribute (Style style)

Write the style attribute. The value will not escaped.

Throws
IOException

public abstract void writeText (Object text, String property)

This method is deprecated.
Should not directly called via this interface. There is be a special method which might be better.

Throws
IOException

public void writeText (String text)

Write text content. The text will be escaped.

Throws
IOException

public void writeTextFromComponent (String property)

Writes a property as text. The text will be escaped.

Throws
IOException