Class RenderKitWrapper
- java.lang.Object
-
- javax.faces.render.RenderKit
-
- javax.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.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description RenderKitWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddClientBehaviorRenderer(java.lang.String type, ClientBehaviorRenderer renderer)The default behavior of this method is to callRenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)on the wrappedRenderKitobject.voidaddRenderer(java.lang.String family, java.lang.String rendererType, Renderer renderer)The default behavior of this method is to callRenderKit.addRenderer(String, String, Renderer)on the wrappedRenderKitobject.ResponseStreamcreateResponseStream(java.io.OutputStream out)The default behavior of this method is to callRenderKit.createResponseStream(java.io.OutputStream)on the wrappedRenderKitobject.ResponseWritercreateResponseWriter(java.io.Writer writer, java.lang.String contentTypeList, java.lang.String characterEncoding)The default behavior of this method is to callRenderKit.createResponseWriter(java.io.Writer, String, String)on the wrappedRenderKitobject.ClientBehaviorRenderergetClientBehaviorRenderer(java.lang.String type)The default behavior of this method is to callRenderKit.getClientBehaviorRenderer(String)on the wrappedRenderKitobject.java.util.Iterator<java.lang.String>getClientBehaviorRendererTypes()The default behavior of this method is to callRenderKit.getClientBehaviorRendererTypes()on the wrappedRenderKitobject.java.util.Iterator<java.lang.String>getComponentFamilies()The default behavior of this method is to callRenderKit.getComponentFamilies()on the wrappedRenderKitobject.RenderergetRenderer(java.lang.String family, java.lang.String rendererType)The default behavior of this method is to callRenderKit.getRenderer(String, String)on the wrappedRenderKitobject.java.util.Iterator<java.lang.String>getRendererTypes(java.lang.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.abstract RenderKitgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.
-
-
-
Method Detail
-
getWrapped
public abstract 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 interfaceFacesWrapper<RenderKit>- Returns:
- the wrapped
RenderKitinstance - See Also:
FacesWrapper.getWrapped()
-
addRenderer
public void addRenderer(java.lang.String family, java.lang.String rendererType, Renderer renderer)The default behavior of this method is to call
RenderKit.addRenderer(String, String, Renderer)on the wrappedRenderKitobject.- Specified by:
addRendererin classRenderKit- Parameters:
family- Component family of theRendererto registerrendererType- Renderer type of theRendererto registerrenderer-Rendererinstance we are registering- See Also:
RenderKit.addRenderer(String, String, Renderer)
-
createResponseStream
public ResponseStream createResponseStream(java.io.OutputStream out)
The default behavior of this method is to call
RenderKit.createResponseStream(java.io.OutputStream)on the wrappedRenderKitobject.- Specified by:
createResponseStreamin classRenderKit- See Also:
RenderKit.createResponseStream(java.io.OutputStream)
-
createResponseWriter
public ResponseWriter createResponseWriter(java.io.Writer writer, java.lang.String contentTypeList, java.lang.String characterEncoding)
The default behavior of this method is to call
RenderKit.createResponseWriter(java.io.Writer, String, String)on the wrappedRenderKitobject.- Specified by:
createResponseWriterin classRenderKit- Parameters:
writer- the Writer around which thisResponseWritermust be built.contentTypeList- an "Accept header style" list of content types for this response, ornullif 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 Stringtext/html,application/xhtml+xml,application/xmlortext/xml. This may change in a future version. The RenderKit must support a value for this argument that comes straight from theAcceptHTTP header, and therefore requires parsing according to the specification of theAcceptheader. Please see Section 14.1 of RFC 2616 for the specification of theAcceptheader.characterEncoding- such as "ISO-8859-1" for this ResponseWriter, ornullif theRenderKitshould 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)
-
getRenderer
public Renderer getRenderer(java.lang.String family, java.lang.String rendererType)
The default behavior of this method is to call
RenderKit.getRenderer(String, String)on the wrappedRenderKitobject.- Specified by:
getRendererin classRenderKit- Parameters:
family- Component family of the requestedRendererinstancerendererType- Renderer type of the requestedRendererinstance- See Also:
RenderKit.getRenderer(String, String)
-
getResponseStateManager
public ResponseStateManager getResponseStateManager()
The default behavior of this method is to call
RenderKit.getResponseStateManager()on the wrappedRenderKitobject.- Specified by:
getResponseStateManagerin classRenderKit- See Also:
RenderKit.getResponseStateManager()
-
getComponentFamilies
public java.util.Iterator<java.lang.String> getComponentFamilies()
The default behavior of this method is to call
RenderKit.getComponentFamilies()on the wrappedRenderKitobject.- Overrides:
getComponentFamiliesin classRenderKit- See Also:
RenderKit.getComponentFamilies()
-
getRendererTypes
public java.util.Iterator<java.lang.String> getRendererTypes(java.lang.String componentFamily)
The default behavior of this method is to call
RenderKit.getRendererTypes(String)on the wrappedRenderKitobject.- Overrides:
getRendererTypesin classRenderKit- Parameters:
componentFamily- one of the members of theIteratorreturned byRenderKit.getComponentFamilies().- See Also:
RenderKit.getRendererTypes(String)
-
addClientBehaviorRenderer
public void addClientBehaviorRenderer(java.lang.String type, ClientBehaviorRenderer renderer)The default behavior of this method is to call
RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)on the wrappedRenderKitobject.- Overrides:
addClientBehaviorRendererin classRenderKit- Parameters:
type- type of theClientBehaviorRendererto registerrenderer-ClientBehaviorRendererinstance we are registering- See Also:
RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)
-
getClientBehaviorRenderer
public ClientBehaviorRenderer getClientBehaviorRenderer(java.lang.String type)
The default behavior of this method is to call
RenderKit.getClientBehaviorRenderer(String)on the wrappedRenderKitobject.- Overrides:
getClientBehaviorRendererin classRenderKit- Parameters:
type- type of the requestedClientBehaviorRendererinstance- See Also:
RenderKit.getClientBehaviorRenderer(String)
-
getClientBehaviorRendererTypes
public java.util.Iterator<java.lang.String> getClientBehaviorRendererTypes()
The default behavior of this method is to call
RenderKit.getClientBehaviorRendererTypes()on the wrappedRenderKitobject.- Overrides:
getClientBehaviorRendererTypesin classRenderKit- See Also:
RenderKit.getClientBehaviorRendererTypes()
-
-