org.apache.myfaces.tobago.internal.webapp
Class JsonResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.apache.myfaces.tobago.webapp.TobagoResponseWriter
              extended by org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
                  extended by org.apache.myfaces.tobago.internal.webapp.HtmlResponseWriter
                      extended by org.apache.myfaces.tobago.internal.webapp.JsonResponseWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class JsonResponseWriter
extends HtmlResponseWriter


Field Summary
 
Fields inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
EMPTY_TAG, XML_VERSION_1_0_ENCODING_UTF_8, XML_VERSION_1_0_ENCODING_UTF_8_CHARS, XML_VERSION_1_0_ENCODING_UTF_8_LENGTH
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
JsonResponseWriter(Writer writer, String contentType, String characterEncoding)
           
 
Method Summary
 javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
           
protected  void closeOpenTag()
           
 void endDocument()
           
protected  void endElementInternal(Writer writer, String name)
           
 void endJavascript()
           
 String getJavascript()
           
 void startDocument()
           
protected  void startElementInternal(Writer writer, String name, javax.faces.component.UIComponent currentComponent)
           
 void startJavascript()
           
 void write(char[] chars)
           
 void write(String string)
           
protected  void writeAttributeInternal(Writer writer, String name, String value, boolean escape)
           
 void writeJavascript(String script)
           
 void writeText(Object text, String property)
           
 
Methods inherited from class org.apache.myfaces.tobago.internal.webapp.HtmlResponseWriter
closeEmptyTag, ensureHtmlStyleMap, getHelper, write, writerAttributeValue, writeText
 
Methods inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
close, endElement, findValue, flush, getCallingClassStackTraceElementString, getCharacterEncoding, getComponent, getContentType, getStyleClasses, getWriter, isStartStillOpen, setComponent, setStartStillOpen, startElement, write, write, writeAttribute, writeAttribute, writeClassAttribute, writeComment, writeInternal, writeURIAttribute
 
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
getContentTypeWithCharSet, startElement, writeAttribute, writeAttribute, writeAttributeFromComponent, writeClassAttribute, writeClassAttribute, writeClassAttribute, writeIdAttribute, writeNameAttribute, writeStyleAttribute, writeStyleAttribute, writeText, writeTextFromComponent
 
Methods inherited from class javax.faces.context.ResponseWriter
writeText
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonResponseWriter

public JsonResponseWriter(Writer writer,
                          String contentType,
                          String characterEncoding)
Method Detail

endJavascript

public void endJavascript()
                   throws IOException
Overrides:
endJavascript in class TobagoResponseWriter
Throws:
IOException

startJavascript

public void startJavascript()
                     throws IOException
Overrides:
startJavascript in class TobagoResponseWriter
Throws:
IOException

write

public void write(String string)
           throws IOException
Overrides:
write in class TobagoResponseWriterBase
Throws:
IOException

write

public void write(char[] chars)
           throws IOException
Overrides:
write in class TobagoResponseWriterBase
Throws:
IOException

writeJavascript

public void writeJavascript(String script)
                     throws IOException
Overrides:
writeJavascript in class TobagoResponseWriter
Throws:
IOException

getJavascript

public String getJavascript()

startElementInternal

protected void startElementInternal(Writer writer,
                                    String name,
                                    javax.faces.component.UIComponent currentComponent)
                             throws IOException
Overrides:
startElementInternal in class TobagoResponseWriterBase
Throws:
IOException

endElementInternal

protected void endElementInternal(Writer writer,
                                  String name)
                           throws IOException
Overrides:
endElementInternal in class TobagoResponseWriterBase
Throws:
IOException

closeOpenTag

protected void closeOpenTag()
                     throws IOException
Overrides:
closeOpenTag in class TobagoResponseWriterBase
Throws:
IOException

writeAttributeInternal

protected void writeAttributeInternal(Writer writer,
                                      String name,
                                      String value,
                                      boolean escape)
                               throws IOException
Overrides:
writeAttributeInternal in class TobagoResponseWriterBase
Throws:
IOException

writeText

public void writeText(Object text,
                      String property)
               throws IOException
Overrides:
writeText in class HtmlResponseWriter
Throws:
IOException

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
Overrides:
cloneWithWriter in class HtmlResponseWriter

startDocument

public void startDocument()
                   throws IOException
Overrides:
startDocument in class HtmlResponseWriter
Throws:
IOException

endDocument

public void endDocument()
                 throws IOException
Overrides:
endDocument in class HtmlResponseWriter
Throws:
IOException


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