org.apache.myfaces.renderkit.html
Class HtmlResponseWriterImpl

java.lang.Object
  |
  +--java.io.Writer
        |
        +--javax.faces.context.ResponseWriter
              |
              +--org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl
All Implemented Interfaces:
DummyFormResponseWriter

public class HtmlResponseWriterImpl
extends javax.faces.context.ResponseWriter
implements DummyFormResponseWriter

Version:
$Revision: 1.1 $ $Date: 2005/02/01 16:51:48 $ $Log: HtmlResponseWriterImpl.java,v $ Revision 1.1 2005/02/01 16:51:48 svieujot Move the HtmlResponseWriterImpl to the shared sources directory. Revision 1.36 2005/01/31 17:43:11 svieujot Bugfix for HtmlResponseWriterImpl.write(str, offset, length). Revision 1.35 2005/01/31 17:03:54 svieujot Resynchronize the HtmlResponseWriterImpl from the renderkit, and from the x:buffer component. Revision 1.34 2005/01/29 10:04:25 matzew MYFACES-91 patch by Jason Hoo. Thanks Revision 1.33 2005/01/19 13:18:04 mmarinschek better logging of component information Revision 1.32 2005/01/04 15:41:06 svieujot new x:buffer component. Revision 1.31 2004/12/27 04:11:11 mmarinschek Data Table stores the state of facets of children; script tag is rendered with type attribute instead of language attribute, popup works better as a column in a data table Revision 1.30 2004/12/17 22:06:32 grantsmith Jira MYFACES-57: Changed logging levels to DEBUG from INFO Revision 1.29 2004/10/24 23:30:35 oros do not convert newline to
and space to &nbps; as this is not required by the spec Revision 1.28 2004/10/13 11:51:00 matze renamed packages to org.apache Revision 1.27 2004/10/05 08:49:15 manolito #1038697 h:selectOneRadio generates malformed XHTML Revision 1.26 2004/10/05 08:32:23 manolito #1038716 Empty h:selectManyCheckbox generates malformed HTML Revision 1.25 2004/09/09 13:15:44 manolito For textareas we must *not* map successive spaces to nbsp Revision 1.24 2004/09/08 15:23:10 manolito Autoscroll feature Revision 1.23 2004/09/08 09:30:01 manolito moved javascript detection to ResponseWriter Revision 1.22 2004/08/20 00:13:55 dave0000 remove unused constant Revision 1.21 2004/08/18 17:56:58 manolito no newline to
mapping for TEXTAREA elements Revision 1.20 2004/08/18 16:13:06 manolito writeText method in HtmlResponseWriterImpl now encodes Newlines and successive spaces Revision 1.19 2004/07/01 22:05:06 mwessendorf ASF switch Revision 1.18 2004/04/29 14:59:42 manolito writeURIAttribute no longer adds state saving url parameters
Author:
Manfred Geiler (latest modification by $Author: svieujot $), Anton Koinov

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HtmlResponseWriterImpl(java.io.Writer writer, java.lang.String contentType, java.lang.String characterEncoding)
           
 
Method Summary
 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()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlResponseWriterImpl

public HtmlResponseWriterImpl(java.io.Writer writer,
                              java.lang.String contentType,
                              java.lang.String characterEncoding)
Method Detail

supportsContentType

public static boolean supportsContentType(java.lang.String contentType)

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class javax.faces.context.ResponseWriter

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in class javax.faces.context.ResponseWriter

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in class javax.faces.context.ResponseWriter
java.io.IOException

startDocument

public void startDocument()
Specified by:
startDocument in class javax.faces.context.ResponseWriter

endDocument

public void endDocument()
                 throws java.io.IOException
Specified by:
endDocument in class javax.faces.context.ResponseWriter
java.io.IOException

startElement

public void startElement(java.lang.String name,
                         javax.faces.component.UIComponent uiComponent)
                  throws java.io.IOException
Specified by:
startElement in class javax.faces.context.ResponseWriter
java.io.IOException

endElement

public void endElement(java.lang.String name)
                throws java.io.IOException
Specified by:
endElement in class javax.faces.context.ResponseWriter
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String name,
                           java.lang.Object value,
                           java.lang.String componentPropertyName)
                    throws java.io.IOException
Specified by:
writeAttribute in class javax.faces.context.ResponseWriter
java.io.IOException

writeURIAttribute

public void writeURIAttribute(java.lang.String name,
                              java.lang.Object value,
                              java.lang.String componentPropertyName)
                       throws java.io.IOException
Specified by:
writeURIAttribute in class javax.faces.context.ResponseWriter
java.io.IOException

writeComment

public void writeComment(java.lang.Object value)
                  throws java.io.IOException
Specified by:
writeComment in class javax.faces.context.ResponseWriter
java.io.IOException

writeText

public void writeText(java.lang.Object value,
                      java.lang.String componentPropertyName)
               throws java.io.IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
java.io.IOException

writeText

public void writeText(char[] cbuf,
                      int off,
                      int len)
               throws java.io.IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
java.io.IOException

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
Specified by:
cloneWithWriter in class javax.faces.context.ResponseWriter

close

public void close()
           throws java.io.IOException
Specified by:
close in class java.io.Writer
java.io.IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
java.io.IOException

write

public void write(char[] cbuf)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
java.io.IOException

setWriteDummyForm

public void setWriteDummyForm(boolean writeDummyForm)
Description copied from interface: DummyFormResponseWriter
Switch on/off the writing of a dummy form in endDocument.

Specified by:
setWriteDummyForm in interface DummyFormResponseWriter
Parameters:
writeDummyForm -

getDummyFormName

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

addDummyFormParameter

public void addDummyFormParameter(java.lang.String paramName)
Description copied from interface: DummyFormResponseWriter
Adds a parameter that will be rendered as a hidden input within the dummy form.

Specified by:
addDummyFormParameter in interface DummyFormResponseWriter

getDummyFormParams

public java.util.Set getDummyFormParams()