org.apache.myfaces.tobago.webapp
Class TobagoResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Direct Known Subclasses:
TobagoResponseWriterImpl, TobagoResponseWriterWrapper

public abstract class TobagoResponseWriter
extends ResponseWriter

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

User: lofwyr Date: 08.05.2007 13:51:43


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
TobagoResponseWriter()
           
 
Method Summary
abstract  ResponseWriter cloneWithWriter(java.io.Writer writer)
           
abstract  void endElement(java.lang.String name)
           
abstract  void flush()
           
 java.lang.String getContentTypeWithCharSet()
           
 void startElement(java.lang.String name)
          Deprecated. Use startElement(name, null) instead.
abstract  void startElement(java.lang.String name, UIComponent component)
           
abstract  void write(java.lang.String string)
           
 void writeAttribute(java.lang.String name, boolean on)
          Writes a boolean attribute.
 void writeAttribute(java.lang.String name, int number)
          Writes a integer attribute.
abstract  void writeAttribute(java.lang.String name, java.lang.Object value, java.lang.String property)
          Deprecated. Should not directly called via this interface. There is be a special method which might be better.
abstract  void writeAttribute(java.lang.String name, java.lang.String string, boolean escape)
          Writes a string attribute.
 void writeAttributeFromComponent(java.lang.String name, java.lang.String property)
          Writes a propery as attribute.
abstract  void writeClassAttribute()
          Write the class attribute.
 void writeClassAttribute(java.lang.String cssClass)
          Write the class attribute.
 void writeClassAttribute(StyleClasses styleClasses)
          Write the class attribute.
abstract  void writeComment(java.lang.Object comment)
           
 void writeIdAttribute(java.lang.String id)
          Write the id attribute.
 void writeJavascript(java.lang.String script)
           
 void writeNameAttribute(java.lang.String name)
          Write the name attribute.
abstract  void writeStyleAttribute()
          Write the style attribute.
 void writeStyleAttribute(HtmlStyleMap style)
          Write the style attribute.
 void writeStyleAttribute(java.lang.String style)
          Write the style attribute.
abstract  void writeText(java.lang.Object text, java.lang.String property)
          Deprecated. Should not directly called via this interface. There is be a special method which might be better.
 void writeText(java.lang.String text)
          Write text content.
 void writeTextFromComponent(java.lang.String property)
          Writes a propery as text.
 
Methods inherited from class javax.faces.context.ResponseWriter
endDocument, getCharacterEncoding, getContentType, startDocument, writeText, writeURIAttribute
 
Methods inherited from class java.io.Writer
append, append, append, close, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TobagoResponseWriter

public TobagoResponseWriter()
Method Detail

startElement

public abstract void startElement(java.lang.String name,
                                  UIComponent component)
                           throws java.io.IOException
Specified by:
startElement in class ResponseWriter
Throws:
java.io.IOException

startElement

@Deprecated
public void startElement(java.lang.String name)
                  throws java.io.IOException
Deprecated. Use startElement(name, null) instead.

Throws:
java.io.IOException

endElement

public abstract void endElement(java.lang.String name)
                         throws java.io.IOException
Specified by:
endElement in class ResponseWriter
Throws:
java.io.IOException

write

public abstract void write(java.lang.String string)
                    throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

writeComment

public abstract void writeComment(java.lang.Object comment)
                           throws java.io.IOException
Specified by:
writeComment in class ResponseWriter
Throws:
java.io.IOException

cloneWithWriter

public abstract ResponseWriter cloneWithWriter(java.io.Writer writer)
Specified by:
cloneWithWriter in class ResponseWriter

writeAttribute

@Deprecated
public abstract void writeAttribute(java.lang.String name,
                                               java.lang.Object value,
                                               java.lang.String property)
                             throws java.io.IOException
Deprecated. Should not directly called via this interface. There is be a special method which might be better.

Specified by:
writeAttribute in class ResponseWriter
Throws:
java.io.IOException

writeText

@Deprecated
public abstract void writeText(java.lang.Object text,
                                          java.lang.String property)
                        throws java.io.IOException
Deprecated. Should not directly called via this interface. There is be a special method which might be better.

Specified by:
writeText in class ResponseWriter
Throws:
java.io.IOException

flush

public abstract void flush()
                    throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class ResponseWriter
Throws:
java.io.IOException

writeAttribute

public abstract void writeAttribute(java.lang.String name,
                                    java.lang.String string,
                                    boolean escape)
                             throws java.io.IOException
Writes a string attribute. The renderer may set escape=false to switch of escaping of the string, if it is not necessary.

Throws:
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String name,
                           boolean on)
                    throws java.io.IOException
Writes a boolean attribute. The value will not escaped.

Throws:
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String name,
                           int number)
                    throws java.io.IOException
Writes a integer attribute. The value will not escaped.

Throws:
java.io.IOException

writeAttributeFromComponent

public void writeAttributeFromComponent(java.lang.String name,
                                        java.lang.String property)
                                 throws java.io.IOException
Writes a propery as attribute. The value will be escaped.

Throws:
java.io.IOException

writeIdAttribute

public void writeIdAttribute(java.lang.String id)
                      throws java.io.IOException
Write the id attribute. The value will not escaped.

Throws:
java.io.IOException

writeNameAttribute

public void writeNameAttribute(java.lang.String name)
                        throws java.io.IOException
Write the name attribute. The value will not escaped.

Throws:
java.io.IOException

writeClassAttribute

public void writeClassAttribute(java.lang.String cssClass)
                         throws java.io.IOException
Write the class attribute. The value will not escaped.

Throws:
java.io.IOException

writeClassAttribute

public void writeClassAttribute(StyleClasses styleClasses)
                         throws java.io.IOException
Write the class attribute. The value will not escaped.

Throws:
java.io.IOException

writeClassAttribute

public abstract void writeClassAttribute()
                                  throws java.io.IOException
Write the class attribute. The value will not escaped.

Throws:
java.io.IOException

writeStyleAttribute

public void writeStyleAttribute(HtmlStyleMap style)
                         throws java.io.IOException
Write the style attribute. The value will not escaped.

Throws:
java.io.IOException

writeStyleAttribute

public void writeStyleAttribute(java.lang.String style)
                         throws java.io.IOException
Write the style attribute. The value will not escaped.

Throws:
java.io.IOException

writeStyleAttribute

public abstract void writeStyleAttribute()
                                  throws java.io.IOException
Write the style attribute. The value will not escaped.

Throws:
java.io.IOException

writeJavascript

public void writeJavascript(java.lang.String script)
                     throws java.io.IOException
Throws:
java.io.IOException

writeText

public void writeText(java.lang.String text)
               throws java.io.IOException
Write text content. The text will be escaped.

Throws:
java.io.IOException

writeTextFromComponent

public void writeTextFromComponent(java.lang.String property)
                            throws java.io.IOException
Writes a propery as text. The text will be escaped.

Throws:
java.io.IOException

getContentTypeWithCharSet

public java.lang.String getContentTypeWithCharSet()


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.