public class SAXResponseWriter
extends javax.faces.context.ResponseWriter
ResponseWriter for Cocoon Environment. Use ONLY Markup-specific calls , send it as
SAX events to XMLConsumer Use "State" pattern for control of events flow. TODO - implement namespace
capabilites| Constructor and Description |
|---|
SAXResponseWriter(ContentHandler consumer) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.context.ResponseWriter |
cloneWithWriter(Writer writer) |
void |
close() |
void |
endDocument() |
void |
endElement(String name) |
void |
flush() |
String |
getCharacterEncoding() |
String |
getContentType() |
String |
getNamespaceURI() |
ContentHandler |
getXmlConsumer() |
void |
setNamespaceURI(String namespaceURI) |
void |
startDocument() |
void |
startElement(String name,
javax.faces.component.UIComponent component) |
void |
write(char[] cbuf,
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 |
writeURIAttribute(String name,
Object value,
String property) |
public SAXResponseWriter(ContentHandler consumer)
consumer - - SAX events receiver for Cocoon pipeline.public ContentHandler getXmlConsumer()
public String getNamespaceURI()
public void setNamespaceURI(String namespaceURI)
namespaceURI - The namespaceURI to set.public String getContentType()
getContentType in class javax.faces.context.ResponseWriterpublic String getCharacterEncoding()
getCharacterEncoding in class javax.faces.context.ResponseWriterpublic void flush()
throws IOException
flush in interface Flushableflush in class javax.faces.context.ResponseWriterIOExceptionpublic void startDocument()
throws IOException
startDocument in class javax.faces.context.ResponseWriterIOExceptionpublic void endDocument()
throws IOException
endDocument in class javax.faces.context.ResponseWriterIOExceptionpublic void startElement(String name, javax.faces.component.UIComponent component) throws IOException
startElement in class javax.faces.context.ResponseWriterIOExceptionpublic void endElement(String name) throws IOException
endElement in class javax.faces.context.ResponseWriterIOExceptionpublic void writeAttribute(String name, Object value, String property) throws IOException
writeAttribute in class javax.faces.context.ResponseWriterIOExceptionpublic void writeURIAttribute(String name, Object value, String property) throws IOException
writeURIAttribute in class javax.faces.context.ResponseWriterIOExceptionpublic void writeComment(Object comment) throws IOException
writeComment in class javax.faces.context.ResponseWriterIOExceptionpublic void writeText(Object text, String property) throws IOException
writeText in class javax.faces.context.ResponseWriterIOExceptionpublic void writeText(char[] text,
int off,
int len)
throws IOException
writeText in class javax.faces.context.ResponseWriterIOExceptionpublic javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)
cloneWithWriter in class javax.faces.context.ResponseWriterpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.