Name
ResponseWriter
Synopsis
An instance of a subclass of this abstract class provides methods for rendering a textual response, with special methods for writing markup elements.
Synopsis
Class name: |
javax.faces.context.ResponseWriter |
Extends: |
java.io.Writer |
Implements: |
None |
Constructors
-
public ResponseWriter()
Creates an instance.
Methods
-
public abstract javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
Returns a new instance wrapped around the provided
Writer
.-
public abstract void endDocument( ) throws java.io.IOException
Closes any open tag (if any) and writes what is needed to end the document (if anything).
-
public abstract void endElement(String name) throws java.io.IOException
Closes any open tag (if any) and writes what is needed to close the named element.
-
public abstract void flush( ) throws java.io.IOException
Closes any open tag (if any) and flushes any buffered output (if any) to the underlying
Writer
orOutputStream
, but does not flush the underlying output object.-
public abstract String getCharacterEncoding()
Returns the character encoding this instance is configured to use.
-
public abstract String getContentType()
Returns the content MIME type this instance is configured to use.
-
public abstract void startDocument( ) throws java.io.IOException
Writes what is needed to start the document (if anything).
-
public abstract void startElement(String name, javax.faces.component.UIComponent component) throws java.io.IOException
Writes beginning of ...
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.