public class RenderKitImpl
extends jakarta.faces.render.RenderKit
| Constructor and Description |
|---|
RenderKitImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehaviorRenderer(String behaviorRendererType,
jakarta.faces.render.ClientBehaviorRenderer behaviorRenderer)
Register the specified
ClientBehaviorRenderer instance, associated with the specified component
type, to the set of ClientBehaviorRenderers registered with this RenderKit, replacing
any previously registered ClientBehaviorRenderer for this type. |
void |
addRenderer(String family,
String rendererType,
jakarta.faces.render.Renderer renderer)
Register the specified
Renderer instance, associated with the specified component family and
rendererType, to the set of Renderers registered with this RenderKit, replacing any
previously registered Renderer for this combination of identifiers. |
jakarta.faces.context.ResponseStream |
createResponseStream(OutputStream out)
Use the provided
OutputStream to create a new ResponseStream instance. |
jakarta.faces.context.ResponseWriter |
createResponseWriter(Writer writer,
String desiredContentTypeList,
String characterEncoding)
Use the provided
Writer to create a new ResponseWriter instance for the specified (optional)
content type, and character encoding. |
jakarta.faces.render.ClientBehaviorRenderer |
getClientBehaviorRenderer(String behaviorRendererType)
Return the
ClientBehaviorRenderer instance most recently registered for the specified type, if
any; otherwise, return null. |
Iterator<String> |
getClientBehaviorRendererTypes()
Return an |
Iterator<String> |
getComponentFamilies()
Return an |
jakarta.faces.render.Renderer |
getRenderer(String family,
String rendererType)
Return the
Renderer instance most recently registered for the specified component family and
rendererType, if any; otherwise, return null. |
Iterator<String> |
getRendererTypes(String componentFamily)
Return an |
jakarta.faces.render.ResponseStateManager |
getResponseStateManager()
Return an instance of
ResponseStateManager to handle rendering technology specific state management
decisions. |
public void addRenderer(String family, String rendererType, jakarta.faces.render.Renderer renderer)
jakarta.faces.render.RenderKit
Register the specified Renderer instance, associated with the specified component family and
rendererType, to the set of Renderers registered with this RenderKit, replacing any
previously registered Renderer for this combination of identifiers.
addRenderer in class jakarta.faces.render.RenderKitfamily - Component family of the Renderer to registerrendererType - Renderer type of the Renderer to registerrenderer - Renderer instance we are registeringpublic jakarta.faces.render.Renderer getRenderer(String family, String rendererType)
jakarta.faces.render.RenderKit
Return the Renderer instance most recently registered for the specified component family and
rendererType, if any; otherwise, return null.
getRenderer in class jakarta.faces.render.RenderKitfamily - Component family of the requested Renderer instancerendererType - Renderer type of the requested Renderer instanceRenderer instancepublic void addClientBehaviorRenderer(String behaviorRendererType, jakarta.faces.render.ClientBehaviorRenderer behaviorRenderer)
jakarta.faces.render.RenderKit
Register the specified ClientBehaviorRenderer instance, associated with the specified component
type, to the set of ClientBehaviorRenderers registered with this RenderKit, replacing
any previously registered ClientBehaviorRenderer for this type.
addClientBehaviorRenderer in class jakarta.faces.render.RenderKitbehaviorRendererType - type of the ClientBehaviorRenderer to registerbehaviorRenderer - ClientBehaviorRenderer instance we are registeringpublic jakarta.faces.render.ClientBehaviorRenderer getClientBehaviorRenderer(String behaviorRendererType)
jakarta.faces.render.RenderKit
Return the ClientBehaviorRenderer instance most recently registered for the specified type, if
any; otherwise, return null.
getClientBehaviorRenderer in class jakarta.faces.render.RenderKitbehaviorRendererType - type of the requested ClientBehaviorRenderer instanceClientBehaviorRenderer instancepublic Iterator<String> getClientBehaviorRendererTypes()
jakarta.faces.render.RenderKit
Return an Iterator over the ClientBehaviorRenderer types.
getClientBehaviorRendererTypes in class jakarta.faces.render.RenderKitIterator over the ClientBehaviorRendererpublic jakarta.faces.render.ResponseStateManager getResponseStateManager()
jakarta.faces.render.RenderKit
Return an instance of ResponseStateManager to handle rendering technology specific state management
decisions.
getResponseStateManager in class jakarta.faces.render.RenderKitResponseStateManagerpublic jakarta.faces.context.ResponseWriter createResponseWriter(Writer writer, String desiredContentTypeList, String characterEncoding)
jakarta.faces.render.RenderKit
Use the provided Writer to create a new ResponseWriter instance for the specified (optional)
content type, and character encoding.
Implementors are advised to consult the getCharacterEncoding() method of class
ServletResponse to get the required value for the characterEncoding for this method. Since
the Writer for this response will already have been obtained (due to it ultimately being passed to this
method), we know that the character encoding cannot change during the rendering of the response.
createResponseWriter in class jakarta.faces.render.RenderKitwriter - the Writer around which this ResponseWriter must be built.desiredContentTypeList - an "Accept header style" list of content types for this response, or null if the
RenderKit should choose the best fit. As of the current version, the values accepted by the Standard render-kit for
this parameter include any valid "Accept header style" String that includes the String text/html,
application/xhtml+xml, application/xml or text/xml. This may change in a
future version. The RenderKit must support a value for this argument that comes straight from the Accept
HTTP header, and therefore requires parsing according to the specification of the Accept header. Please
see Section 14.1 of RFC 2616 for the specification of
the Accept header.characterEncoding - such as "ISO-8859-1" for this ResponseWriter, or null if the
RenderKit should choose the best fit. Please see
the IANA for a list of character encodings.ResponseWriter.public jakarta.faces.context.ResponseStream createResponseStream(OutputStream out)
jakarta.faces.render.RenderKit
Use the provided OutputStream to create a new ResponseStream instance.
createResponseStream in class jakarta.faces.render.RenderKitout - the OutputStream around which to create the ResponseStreamResponseStreampublic Iterator<String> getComponentFamilies()
jakarta.faces.render.RenderKit
Return an Iterator over the component-family entries supported by this RenderKit instance.
The default implementation of this method returns an empty Iterator
getComponentFamilies in class jakarta.faces.render.RenderKitIterator over the component-family entriesRenderKit.getComponentFamilies()public Iterator<String> getRendererTypes(String componentFamily)
jakarta.faces.render.RenderKit
Return an Iterator over the renderer-type entries for the given component-family.
If the specified componentFamily is not known to this RenderKit implementation, return an
empty Iterator
The default implementation of this method returns an empty Iterator
getRendererTypes in class jakarta.faces.render.RenderKitcomponentFamily - one of the members of the Iterator returned by RenderKit.getComponentFamilies().Iterator over the renderer-typeRenderKit.getRendererTypes(String)Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.