Class RenderKitWrapper
- java.lang.Object
- 
- jakarta.faces.render.RenderKit
- 
- jakarta.faces.render.RenderKitWrapper
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<RenderKit>
 
 public abstract class RenderKitWrapper extends RenderKit implements FacesWrapper<RenderKit> Provides a simple implementation of RenderKitthat can be subclassed by developers wishing to provide specialized behavior to an existingRenderKitinstance. The default implementation of all methods is to call through to the wrappedRenderKit.Usage: extend this class and override getWrapped()to return the instance we are wrapping.Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped()to access the instance being wrapped.- Since:
- 2.0
 
- 
- 
Constructor SummaryConstructors Constructor Description RenderKitWrapper()Deprecated.Use the other constructor taking the implementation being wrapped.RenderKitWrapper(RenderKit wrapped)If this render kit has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)The default behavior of this method is to callRenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)on the wrappedRenderKitobject.voidaddRenderer(String family, String rendererType, Renderer renderer)The default behavior of this method is to callRenderKit.addRenderer(String, String, Renderer)on the wrappedRenderKitobject.ResponseStreamcreateResponseStream(OutputStream out)The default behavior of this method is to callRenderKit.createResponseStream(java.io.OutputStream)on the wrappedRenderKitobject.ResponseWritercreateResponseWriter(Writer writer, String contentTypeList, String characterEncoding)The default behavior of this method is to callRenderKit.createResponseWriter(java.io.Writer, String, String)on the wrappedRenderKitobject.ClientBehaviorRenderergetClientBehaviorRenderer(String type)The default behavior of this method is to callRenderKit.getClientBehaviorRenderer(String)on the wrappedRenderKitobject.Iterator<String>getClientBehaviorRendererTypes()The default behavior of this method is to callRenderKit.getClientBehaviorRendererTypes()on the wrappedRenderKitobject.Iterator<String>getComponentFamilies()The default behavior of this method is to callRenderKit.getComponentFamilies()on the wrappedRenderKitobject.RenderergetRenderer(String family, String rendererType)The default behavior of this method is to callRenderKit.getRenderer(String, String)on the wrappedRenderKitobject.Iterator<String>getRendererTypes(String componentFamily)The default behavior of this method is to callRenderKit.getRendererTypes(String)on the wrappedRenderKitobject.ResponseStateManagergetResponseStateManager()The default behavior of this method is to callRenderKit.getResponseStateManager()on the wrappedRenderKitobject.RenderKitgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.
 
- 
- 
- 
Constructor Detail- 
RenderKitWrapper@Deprecated public RenderKitWrapper() Deprecated.Use the other constructor taking the implementation being wrapped.
 - 
RenderKitWrapperpublic RenderKitWrapper(RenderKit wrapped) If this render kit has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The getWrapped()will then return the implementation being wrapped.- Parameters:
- wrapped- The implementation being wrapped.
- Since:
- 2.3
 
 
- 
 - 
Method Detail- 
getWrappedpublic RenderKit getWrapped() Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped. - Specified by:
- getWrappedin interface- FacesWrapper<RenderKit>
- Returns:
- the wrapped instance.
 
 - 
addRendererpublic void addRenderer(String family, String rendererType, Renderer renderer) The default behavior of this method is to call RenderKit.addRenderer(String, String, Renderer)on the wrappedRenderKitobject.- Specified by:
- addRendererin class- RenderKit
- Parameters:
- family- Component family of the- Rendererto register
- rendererType- Renderer type of the- Rendererto register
- renderer-- Rendererinstance we are registering
- See Also:
- RenderKit.addRenderer(String, String, Renderer)
 
 - 
createResponseStreampublic ResponseStream createResponseStream(OutputStream out) The default behavior of this method is to call RenderKit.createResponseStream(java.io.OutputStream)on the wrappedRenderKitobject.- Specified by:
- createResponseStreamin class- RenderKit
- Parameters:
- out- the- OutputStreamaround which to create the- ResponseStream
- Returns:
- the new ResponseStream
- See Also:
- RenderKit.createResponseStream(java.io.OutputStream)
 
 - 
createResponseWriterpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) The default behavior of this method is to call RenderKit.createResponseWriter(java.io.Writer, String, String)on the wrappedRenderKitobject.- Specified by:
- createResponseWriterin class- RenderKit
- Parameters:
- writer- the Writer around which this- ResponseWritermust be built.
- contentTypeList- an "Accept header style" list of content types for this response, or- nullif 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/xmlor- text/xml. This may change in a future version. The RenderKit must support a value for this argument that comes straight from the- AcceptHTTP header, and therefore requires parsing according to the specification of the- Acceptheader. Please see Section 14.1 of RFC 2616 for the specification of the- Acceptheader.
- characterEncoding- such as "ISO-8859-1" for this ResponseWriter, or- nullif the- RenderKitshould choose the best fit. Please see the IANA for a list of character encodings.
- Returns:
- a new ResponseWriter.
- See Also:
- RenderKit.createResponseWriter(java.io.Writer, String, String)
 
 - 
getRendererpublic Renderer getRenderer(String family, String rendererType) The default behavior of this method is to call RenderKit.getRenderer(String, String)on the wrappedRenderKitobject.- Specified by:
- getRendererin class- RenderKit
- Parameters:
- family- Component family of the requested- Rendererinstance
- rendererType- Renderer type of the requested- Rendererinstance
- Returns:
- the Rendererinstance
- See Also:
- RenderKit.getRenderer(String, String)
 
 - 
getResponseStateManagerpublic ResponseStateManager getResponseStateManager() The default behavior of this method is to call RenderKit.getResponseStateManager()on the wrappedRenderKitobject.- Specified by:
- getResponseStateManagerin class- RenderKit
- Returns:
- the ResponseStateManager
- See Also:
- RenderKit.getResponseStateManager()
 
 - 
getComponentFamiliespublic Iterator<String> getComponentFamilies() The default behavior of this method is to call RenderKit.getComponentFamilies()on the wrappedRenderKitobject.- Overrides:
- getComponentFamiliesin class- RenderKit
- Returns:
- Return an Iteratorover the component-family entries
- See Also:
- RenderKit.getComponentFamilies()
 
 - 
getRendererTypespublic Iterator<String> getRendererTypes(String componentFamily) The default behavior of this method is to call RenderKit.getRendererTypes(String)on the wrappedRenderKitobject.- Overrides:
- getRendererTypesin class- RenderKit
- Parameters:
- componentFamily- one of the members of the- Iteratorreturned by- RenderKit.getComponentFamilies().
- Returns:
- an Iteratorover the renderer-type
- See Also:
- RenderKit.getRendererTypes(String)
 
 - 
addClientBehaviorRendererpublic void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer) The default behavior of this method is to call RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)on the wrappedRenderKitobject.- Overrides:
- addClientBehaviorRendererin class- RenderKit
- Parameters:
- type- type of the- ClientBehaviorRendererto register
- renderer-- ClientBehaviorRendererinstance we are registering
- See Also:
- RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)
 
 - 
getClientBehaviorRendererpublic ClientBehaviorRenderer getClientBehaviorRenderer(String type) The default behavior of this method is to call RenderKit.getClientBehaviorRenderer(String)on the wrappedRenderKitobject.- Overrides:
- getClientBehaviorRendererin class- RenderKit
- Parameters:
- type- type of the requested- ClientBehaviorRendererinstance
- Returns:
- the ClientBehaviorRendererinstance
- See Also:
- RenderKit.getClientBehaviorRenderer(String)
 
 - 
getClientBehaviorRendererTypespublic Iterator<String> getClientBehaviorRendererTypes() The default behavior of this method is to call RenderKit.getClientBehaviorRendererTypes()on the wrappedRenderKitobject.- Overrides:
- getClientBehaviorRendererTypesin class- RenderKit
- Returns:
- an Iteratorover theClientBehaviorRenderer
- See Also:
- RenderKit.getClientBehaviorRendererTypes()
 
 
- 
 
-