com.liferay.faces.bridge.context.internal
Class HeadResponseWriterBase

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by javax.faces.context.ResponseWriterWrapper
              extended by com.liferay.faces.bridge.context.HeadResponseWriter
                  extended by com.liferay.faces.bridge.context.internal.HeadResponseWriterBase
All Implemented Interfaces:
Closeable, Flushable, Appendable, javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
Direct Known Subclasses:
HeadResponseWriterImpl, HeadResponseWriterLiferayImpl

public abstract class HeadResponseWriterBase
extends HeadResponseWriter

Author:
Neil Griffin

Field Summary
protected static String ADDED_RESOURCE_TO_HEAD
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HeadResponseWriterBase(javax.faces.context.ResponseWriter wrappedResponseWriter)
           
 
Method Summary
protected abstract  void addResourceToHeadSection(Element element, String nodeName)
           
 Writer append(char c)
           
 Writer append(CharSequence csq)
           
 Writer append(CharSequence csq, int start, int end)
           
 void close()
           
abstract  Element createElement(String name)
           
 void endCDATA()
           
 void endDocument()
           
 void endElement(String name)
           
protected  String escapeURI(String uri)
           
 void flush()
           
 javax.faces.context.ResponseWriter getWrapped()
           
 void startCDATA()
           
 void startDocument()
           
 void startElement(String name, javax.faces.component.UIComponent component)
           
 void write(char[] cbuf)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 void writeAttribute(String name, Object value, String property)
           
 void writeComment(Object comment)
           
 void writeText(char[] text, int off, int len)
           
 void writeText(Object text, String property)
           
 void writeText(Object text, javax.faces.component.UIComponent component, String property)
           
 void writeURIAttribute(String name, Object value, String property)
           
 
Methods inherited from class javax.faces.context.ResponseWriterWrapper
cloneWithWriter, getCharacterEncoding, getContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDED_RESOURCE_TO_HEAD

protected static final String ADDED_RESOURCE_TO_HEAD
See Also:
Constant Field Values
Constructor Detail

HeadResponseWriterBase

public HeadResponseWriterBase(javax.faces.context.ResponseWriter wrappedResponseWriter)
Method Detail

createElement

public abstract Element createElement(String name)

append

public Writer append(CharSequence csq)
              throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public Writer append(char c)
              throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

append

public Writer append(CharSequence csq,
                     int start,
                     int end)
              throws IOException
Specified by:
append in interface Appendable
Overrides:
append in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

endCDATA

public void endCDATA()
              throws IOException
Overrides:
endCDATA in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

endDocument

public void endDocument()
                 throws IOException
Overrides:
endDocument in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

endElement

public void endElement(String name)
                throws IOException
Overrides:
endElement in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

startCDATA

public void startCDATA()
                throws IOException
Overrides:
startCDATA in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

startDocument

public void startDocument()
                   throws IOException
Overrides:
startDocument in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

startElement

public void startElement(String name,
                         javax.faces.component.UIComponent component)
                  throws IOException
Overrides:
startElement in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] cbuf)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

writeAttribute

public void writeAttribute(String name,
                           Object value,
                           String property)
                    throws IOException
Overrides:
writeAttribute in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeComment

public void writeComment(Object comment)
                  throws IOException
Overrides:
writeComment in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeText

public void writeText(Object text,
                      String property)
               throws IOException
Overrides:
writeText in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeText

public void writeText(Object text,
                      javax.faces.component.UIComponent component,
                      String property)
               throws IOException
Overrides:
writeText in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeText

public void writeText(char[] text,
                      int off,
                      int len)
               throws IOException
Overrides:
writeText in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

writeURIAttribute

public void writeURIAttribute(String name,
                              Object value,
                              String property)
                       throws IOException
Overrides:
writeURIAttribute in class javax.faces.context.ResponseWriterWrapper
Throws:
IOException

addResourceToHeadSection

protected abstract void addResourceToHeadSection(Element element,
                                                 String nodeName)
                                          throws IOException
Throws:
IOException

escapeURI

protected String escapeURI(String uri)

getWrapped

public javax.faces.context.ResponseWriter getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
Overrides:
getWrapped in class javax.faces.context.ResponseWriterWrapper


Copyright © 2015 Liferay, Inc.. All rights reserved.