org.apache.myfaces.renderkit.html

Class HtmlResponseWriterImpl

Implemented Interfaces:
DummyFormResponseWriter

public class HtmlResponseWriterImpl
extends ResponseWriter
implements DummyFormResponseWriter

Version:
$Revision: 278740 $ $Date: 2005-09-05 16:08:17 +0200 (Mon, 05 Sep 2005) $
Authors:
Manfred Geiler (latest modification by $Author: baranda $)
Anton Koinov

Constructor Summary

HtmlResponseWriterImpl(Writer writer, String contentType, String characterEncoding)

Method Summary

void
addDummyFormParameter(String paramName)
Adds a parameter that will be rendered as a hidden input within the dummy form.
ResponseWriter
cloneWithWriter(Writer writer)
void
close()
void
endDocument()
void
endElement(String name)
void
flush()
String
getCharacterEncoding()
String
getContentType()
String
getDummyFormName()
Set
getDummyFormParams()
boolean
isWriteDummyForm()
void
setWriteDummyForm(boolean writeDummyForm)
Switch on/off the writing of a dummy form in endDocument.
void
startDocument()
void
startElement(String name, UIComponent uiComponent)
static boolean
supportsContentType(String contentType)
void
write(String str)
void
write(String str, int off, int len)
void
write(cbuf[] )
void
write(cbuf[] , int off, int len)
void
write(int c)
void
writeAttribute(String name, Object value, String componentPropertyName)
void
writeComment(Object value)
void
writeText(Object value, String componentPropertyName)
void
writeText(cbuf[] , int off, int len)
void
writeURIAttribute(String name, Object value, String componentPropertyName)

Constructor Details

HtmlResponseWriterImpl

public HtmlResponseWriterImpl(Writer writer,
                              String contentType,
                              String characterEncoding)
            throws FacesException

Method Details

addDummyFormParameter

public void addDummyFormParameter(String paramName)
Adds a parameter that will be rendered as a hidden input within the dummy form.
Specified by:
addDummyFormParameter in interface DummyFormResponseWriter

cloneWithWriter

public ResponseWriter cloneWithWriter(Writer writer)

close

public void close()
            throws IOException

endDocument

public void endDocument()
            throws IOException

endElement

public void endElement(String name)
            throws IOException

flush

public void flush()
            throws IOException

getCharacterEncoding

public String getCharacterEncoding()

getContentType

public String getContentType()

getDummyFormName

public String getDummyFormName()
Specified by:
getDummyFormName in interface DummyFormResponseWriter
Returns:
name of the dummy form, that will be rendered

getDummyFormParams

public Set getDummyFormParams()

isWriteDummyForm

public boolean isWriteDummyForm()

setWriteDummyForm

public void setWriteDummyForm(boolean writeDummyForm)
Switch on/off the writing of a dummy form in endDocument.
Specified by:
setWriteDummyForm in interface DummyFormResponseWriter
Parameters:
writeDummyForm -

startDocument

public void startDocument()

startElement

public void startElement(String name,
                         UIComponent uiComponent)
            throws IOException

supportsContentType

public static boolean supportsContentType(String contentType)

write

public void write(String str)
            throws IOException

write

public void write(String str,
                  int off,
                  int len)
            throws IOException

write

public void write(cbuf[] )
            throws IOException

write

public void write(cbuf[] ,
                  int off,
                  int len)
            throws IOException

write

public void write(int c)
            throws IOException

writeAttribute

public void writeAttribute(String name,
                           Object value,
                           String componentPropertyName)
            throws IOException

writeComment

public void writeComment(Object value)
            throws IOException

writeText

public void writeText(Object value,
                      String componentPropertyName)
            throws IOException

writeText

public void writeText(cbuf[] ,
                      int off,
                      int len)
            throws IOException

writeURIAttribute

public void writeURIAttribute(String name,
                              Object value,
                              String componentPropertyName)
            throws IOException