public class HtmlResponseWriterImpl extends javax.faces.context.ResponseWriter implements DummyFormResponseWriter
| Constructor and Description |
|---|
HtmlResponseWriterImpl(java.io.Writer writer,
java.lang.String contentType,
java.lang.String characterEncoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDummyFormParameter(java.lang.String paramName)
Adds a parameter that will be rendered as a hidden input within the dummy form.
|
javax.faces.context.ResponseWriter |
cloneWithWriter(java.io.Writer writer) |
void |
close() |
void |
endDocument() |
void |
endElement(java.lang.String name) |
void |
flush() |
java.lang.String |
getCharacterEncoding() |
java.lang.String |
getContentType() |
java.lang.String |
getDummyFormName() |
java.util.Set |
getDummyFormParams() |
boolean |
isWriteDummyForm() |
void |
setWriteDummyForm(boolean writeDummyForm)
Switch on/off the writing of a dummy form in endDocument.
|
void |
startDocument() |
void |
startElement(java.lang.String name,
javax.faces.component.UIComponent uiComponent) |
static boolean |
supportsContentType(java.lang.String contentType) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str) |
void |
write(java.lang.String str,
int off,
int len) |
void |
writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName) |
void |
writeComment(java.lang.Object value) |
void |
writeText(char[] cbuf,
int off,
int len) |
void |
writeText(java.lang.Object value,
java.lang.String componentPropertyName) |
void |
writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName) |
public HtmlResponseWriterImpl(java.io.Writer writer,
java.lang.String contentType,
java.lang.String characterEncoding)
throws javax.faces.FacesException
javax.faces.FacesExceptionpublic static boolean supportsContentType(java.lang.String contentType)
public java.lang.String getContentType()
getContentType in class javax.faces.context.ResponseWriterpublic java.lang.String getCharacterEncoding()
getCharacterEncoding in class javax.faces.context.ResponseWriterpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void startDocument()
startDocument in class javax.faces.context.ResponseWriterpublic void endDocument()
throws java.io.IOException
endDocument in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void startElement(java.lang.String name,
javax.faces.component.UIComponent uiComponent)
throws java.io.IOException
startElement in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void endElement(java.lang.String name)
throws java.io.IOException
endElement in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void writeAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
throws java.io.IOException
writeAttribute in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void writeURIAttribute(java.lang.String name,
java.lang.Object value,
java.lang.String componentPropertyName)
throws java.io.IOException
writeURIAttribute in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void writeComment(java.lang.Object value)
throws java.io.IOException
writeComment in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void writeText(java.lang.Object value,
java.lang.String componentPropertyName)
throws java.io.IOException
writeText in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic void writeText(char[] cbuf,
int off,
int len)
throws java.io.IOException
writeText in class javax.faces.context.ResponseWriterjava.io.IOExceptionpublic javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
cloneWithWriter in class javax.faces.context.ResponseWriterpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(int c)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(char[] cbuf)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String str)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic boolean isWriteDummyForm()
public void setWriteDummyForm(boolean writeDummyForm)
DummyFormResponseWritersetWriteDummyForm in interface DummyFormResponseWriterpublic java.lang.String getDummyFormName()
getDummyFormName in interface DummyFormResponseWriterpublic void addDummyFormParameter(java.lang.String paramName)
DummyFormResponseWriteraddDummyFormParameter in interface DummyFormResponseWriterpublic java.util.Set getDummyFormParams()