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

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
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
JsonResponseWriter

public class HtmlResponseWriter
extends TobagoResponseWriterBase


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
HtmlResponseWriter(Writer writer, String contentType, String characterEncoding)
           
 
Method Summary
 javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
           
protected  void closeEmptyTag()
           
 void endDocument()
           
 void endElement(String name)
           
 void endJavascript()
          Deprecated. Should not be used, because it conflicts with CSP.
static Style ensureHtmlStyleMap(javax.faces.component.UIComponent component, Style styles)
          Deprecated.  
 WriterUtils getHelper()
           
 String getJavascript()
           
 void startDocument()
           
 void startJavascript()
          Deprecated. Should not be used, because it conflicts with CSP.
 void write(char[] cbuf, int off, int len)
           
 void write(String string)
           
 void writeJavascript(String script)
          Deprecated. Should not be used, because it conflicts with CSP.
protected  void writerAttributeValue(String value, boolean escape)
           
 void writeText(char[] text, int offset, int length)
           
 void writeText(Object text, String property)
           
 
Methods inherited from class org.apache.myfaces.tobago.internal.webapp.TobagoResponseWriterBase
close, closeOpenTag, endElementInternal, findValue, flush, getCallingClassStackTraceElementString, getCharacterEncoding, getComponent, getContentType, getStyleClasses, getWriter, isStartStillOpen, setComponent, setStartStillOpen, startElement, startElementInternal, write, write, write, writeAttribute, writeAttribute, writeAttributeInternal, writeClassAttribute, writeComment, writeInternal, writeURIAttribute
 
Methods inherited from class org.apache.myfaces.tobago.webapp.TobagoResponseWriter
getContentTypeWithCharSet, startElement, writeAttribute, writeAttribute, writeAttributeFromComponent, writeClassAttribute, writeClassAttribute, writeIdAttribute, writeNameAttribute, writeStyleAttribute, writeStyleAttribute, writeText, writeTextFromComponent
 
Methods inherited from class javax.faces.context.ResponseWriter
endCDATA, startCDATA, 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

HtmlResponseWriter

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

endJavascript

@Deprecated
public void endJavascript()
                   throws IOException
Deprecated. Should not be used, because it conflicts with CSP.

Overrides:
endJavascript in class TobagoResponseWriter
Throws:
IOException

startJavascript

@Deprecated
public void startJavascript()
                     throws IOException
Deprecated. Should not be used, because it conflicts with CSP.

Overrides:
startJavascript in class TobagoResponseWriter
Throws:
IOException

write

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

writeJavascript

@Deprecated
public void writeJavascript(String script)
                     throws IOException
Deprecated. Should not be used, because it conflicts with CSP.

Overrides:
writeJavascript in class TobagoResponseWriter
Throws:
IOException

getJavascript

public String getJavascript()

getHelper

public final WriterUtils getHelper()

writeText

public void writeText(Object text,
                      String property)
               throws IOException
Specified by:
writeText in class TobagoResponseWriter
Throws:
IOException

writeText

public void writeText(char[] text,
                      int offset,
                      int length)
               throws IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class TobagoResponseWriterBase
Throws:
IOException

closeEmptyTag

protected final void closeEmptyTag()
                            throws IOException
Specified by:
closeEmptyTag in class TobagoResponseWriterBase
Throws:
IOException

writerAttributeValue

protected void writerAttributeValue(String value,
                                    boolean escape)
                             throws IOException
Specified by:
writerAttributeValue in class TobagoResponseWriterBase
Throws:
IOException

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(Writer originalWriter)
Specified by:
cloneWithWriter in class TobagoResponseWriter

ensureHtmlStyleMap

@Deprecated
public static Style ensureHtmlStyleMap(javax.faces.component.UIComponent component,
                                                  Style styles)
Deprecated. 


startDocument

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

endElement

public void endElement(String name)
                throws IOException
Overrides:
endElement in class TobagoResponseWriterBase
Throws:
IOException

endDocument

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


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