org.apache.myfaces.trinidadinternal.renderkit.core.ppr
Class ScriptBufferingResponseWriter
java.lang.Object
java.io.Writer
javax.faces.context.ResponseWriter
org.apache.myfaces.trinidadinternal.io.ResponseWriterDecorator
org.apache.myfaces.trinidadinternal.renderkit.core.ppr.ScriptBufferingResponseWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class ScriptBufferingResponseWriter
- extends ResponseWriterDecorator
ResponseWriter which buffers up/filters out any deferred scripts.
- Version:
- $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/ppr/ScriptBufferingResponseWriter.java#0 $) $Date: 10-nov-2005.19:03:31 $
- Author:
- The Oracle ADF Faces Team
Fields inherited from class java.io.Writer |
lock |
Method Summary |
javax.faces.context.ResponseWriter |
cloneWithWriter(java.io.Writer writer)
|
void |
endElement(java.lang.String name)
|
java.util.Iterator<java.lang.Object> |
getBufferedLibraries()
Returns objects representing any JavaScript libraries that
have been rendered during buffering. |
java.lang.String |
getBufferedScripts()
Returns the buffered script contents |
void |
startElement(java.lang.String name,
javax.faces.component.UIComponent component)
|
void |
write(char[] text,
int start,
int length)
|
void |
write(int ch)
|
void |
write(java.lang.String text)
|
void |
writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
|
void |
writeComment(java.lang.Object text)
|
void |
writeText(char[] text,
int start,
int length)
|
void |
writeText(java.lang.Object text,
java.lang.String property)
|
void |
writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
|
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 |
ScriptBufferingResponseWriter
public ScriptBufferingResponseWriter(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter output)
getBufferedScripts
public java.lang.String getBufferedScripts()
- Returns the buffered script contents
getBufferedLibraries
public java.util.Iterator<java.lang.Object> getBufferedLibraries()
- Returns objects representing any JavaScript libraries that
have been rendered during buffering.
cloneWithWriter
public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
- Overrides:
cloneWithWriter
in class ResponseWriterDecorator
writeComment
public void writeComment(java.lang.Object text)
throws java.io.IOException
- Overrides:
writeComment
in class ResponseWriterDecorator
- Throws:
java.io.IOException
writeText
public void writeText(java.lang.Object text,
java.lang.String property)
throws java.io.IOException
- Overrides:
writeText
in class ResponseWriterDecorator
- Throws:
java.io.IOException
writeText
public void writeText(char[] text,
int start,
int length)
throws java.io.IOException
- Overrides:
writeText
in class ResponseWriterDecorator
- Throws:
java.io.IOException
write
public void write(java.lang.String text)
throws java.io.IOException
- Overrides:
write
in class ResponseWriterDecorator
- Throws:
java.io.IOException
write
public void write(char[] text,
int start,
int length)
throws java.io.IOException
- Overrides:
write
in class ResponseWriterDecorator
- Throws:
java.io.IOException
write
public void write(int ch)
throws java.io.IOException
- Overrides:
write
in class ResponseWriterDecorator
- Throws:
java.io.IOException
startElement
public void startElement(java.lang.String name,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Overrides:
startElement
in class ResponseWriterDecorator
- Throws:
java.io.IOException
endElement
public void endElement(java.lang.String name)
throws java.io.IOException
- Overrides:
endElement
in class ResponseWriterDecorator
- Throws:
java.io.IOException
writeAttribute
public void writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
throws java.io.IOException
- Overrides:
writeAttribute
in class ResponseWriterDecorator
- Throws:
java.io.IOException
writeURIAttribute
public void writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String property)
throws java.io.IOException
- Overrides:
writeURIAttribute
in class ResponseWriterDecorator
- Throws:
java.io.IOException
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.