Package org.primefaces.csp
Class CspPartialResponseWriter
- java.lang.Object
-
- java.io.Writer
-
- javax.faces.context.ResponseWriter
-
- javax.faces.context.ResponseWriterWrapper
-
- javax.faces.context.PartialResponseWriter
-
- org.primefaces.context.PartialResponseWriterWrapper
-
- org.primefaces.csp.CspPartialResponseWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
,javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
public class CspPartialResponseWriter extends PartialResponseWriterWrapper
-
-
Constructor Summary
Constructors Constructor Description CspPartialResponseWriter(javax.faces.context.PartialResponseWriter wrapped, javax.faces.context.FacesContext context, CspState cspState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
endElement(String name)
void
endError()
void
endEval()
void
endExtension()
void
endInsert()
void
endUpdate()
void
flush()
void
startElement(String name, javax.faces.component.UIComponent component)
void
startError(String errorName)
void
startEval()
void
startExtension(Map<String,String> attributes)
void
startInsertAfter(String targetId)
void
startInsertBefore(String targetId)
void
startUpdate(String targetId)
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
writeText(Object text, javax.faces.component.UIComponent component, String property)
void
writeURIAttribute(String name, Object value, String property)
-
Methods inherited from class org.primefaces.context.PartialResponseWriterWrapper
delete, endDocument, redirect, startDocument, updateAttributes
-
Methods inherited from class javax.faces.context.ResponseWriterWrapper
cloneWithWriter, endCDATA, getCharacterEncoding, getContentType, getWrapped, startCDATA, writeDoctype, writePreamble
-
-
-
-
Constructor Detail
-
CspPartialResponseWriter
public CspPartialResponseWriter(javax.faces.context.PartialResponseWriter wrapped, javax.faces.context.FacesContext context, CspState cspState)
-
-
Method Detail
-
startInsertAfter
public void startInsertAfter(String targetId) throws IOException
- Overrides:
startInsertAfter
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startInsertBefore
public void startInsertBefore(String targetId) throws IOException
- Overrides:
startInsertBefore
in classPartialResponseWriterWrapper
- Throws:
IOException
-
endInsert
public void endInsert() throws IOException
- Overrides:
endInsert
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startUpdate
public void startUpdate(String targetId) throws IOException
- Overrides:
startUpdate
in classPartialResponseWriterWrapper
- Throws:
IOException
-
endUpdate
public void endUpdate() throws IOException
- Overrides:
endUpdate
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startEval
public void startEval() throws IOException
- Overrides:
startEval
in classPartialResponseWriterWrapper
- Throws:
IOException
-
endEval
public void endEval() throws IOException
- Overrides:
endEval
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startExtension
public void startExtension(Map<String,String> attributes) throws IOException
- Overrides:
startExtension
in classPartialResponseWriterWrapper
- Throws:
IOException
-
endExtension
public void endExtension() throws IOException
- Overrides:
endExtension
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startError
public void startError(String errorName) throws IOException
- Overrides:
startError
in classPartialResponseWriterWrapper
- Throws:
IOException
-
endError
public void endError() throws IOException
- Overrides:
endError
in classPartialResponseWriterWrapper
- Throws:
IOException
-
startElement
public void startElement(String name, javax.faces.component.UIComponent component) throws IOException
- Overrides:
startElement
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
- Overrides:
writeAttribute
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
- Overrides:
writeURIAttribute
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Overrides:
endElement
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeComment
public void writeComment(Object comment) throws IOException
- Overrides:
writeComment
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeText
public void writeText(Object text, String property) throws IOException
- Overrides:
writeText
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeText
public void writeText(Object text, javax.faces.component.UIComponent component, String property) throws IOException
- Overrides:
writeText
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
writeText
public void writeText(char[] text, int off, int len) throws IOException
- Overrides:
writeText
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classjavax.faces.context.ResponseWriterWrapper
- Throws:
IOException
-
-