-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClientBehaviorRenderer(String behaviorRendererType, ClientBehaviorRenderer behaviorRenderer) Register the specifiedClientBehaviorRendererinstance, associated with the specified componenttype, to the set ofClientBehaviorRenderers registered with thisRenderKit, replacing any previously registeredClientBehaviorRendererfor this type.voidaddRenderer(String family, String rendererType, Renderer renderer) Use the providedOutputStreamto create a newResponseStreaminstance.createResponseWriter(Writer writer, String desiredContentTypeList, String characterEncoding) Use the providedWriterto create a newResponseWriterinstance for the specified (optional) content type, and character encoding.getClientBehaviorRenderer(String behaviorRendererType) Return theClientBehaviorRendererinstance most recently registered for the specifiedtype, if any; otherwise, returnnull.Return anIteratorover theClientBehaviorRenderertypes.Return anIteratorover the component-family entries supported by thisRenderKitinstance.getRenderer(String family, String rendererType) Return theRendererinstance most recently registered for the specified componentfamilyandrendererType, if any; otherwise, returnnull.getRendererTypes(String componentFamily) Return anIteratorover the renderer-type entries for the given component-family.Return an instance ofResponseStateManagerto handle rendering technology specific state management decisions.
-
Constructor Details
-
RenderKitImpl
public RenderKitImpl()
-
-
Method Details
-
addRenderer
Description copied from class:RenderKitRegister the specified
Rendererinstance, associated with the specified componentfamilyandrendererType, to the set ofRenderers registered with thisRenderKit, replacing any previously registeredRendererfor this combination of identifiers.- Specified by:
addRendererin classRenderKit- Parameters:
family- Component family of theRendererto registerrendererType- Renderer type of theRendererto registerrenderer-Rendererinstance we are registering
-
getRenderer
Description copied from class:RenderKitReturn the
Rendererinstance most recently registered for the specified componentfamilyandrendererType, if any; otherwise, returnnull.- Specified by:
getRendererin classRenderKit- Parameters:
family- Component family of the requestedRendererinstancerendererType- Renderer type of the requestedRendererinstance- Returns:
- the
Rendererinstance
-
addClientBehaviorRenderer
public void addClientBehaviorRenderer(String behaviorRendererType, ClientBehaviorRenderer behaviorRenderer) Description copied from class:RenderKitRegister the specified
ClientBehaviorRendererinstance, associated with the specified componenttype, to the set ofClientBehaviorRenderers registered with thisRenderKit, replacing any previously registeredClientBehaviorRendererfor this type.- Overrides:
addClientBehaviorRendererin classRenderKit- Parameters:
behaviorRendererType- type of theClientBehaviorRendererto registerbehaviorRenderer-ClientBehaviorRendererinstance we are registering
-
getClientBehaviorRenderer
Description copied from class:RenderKitReturn the
ClientBehaviorRendererinstance most recently registered for the specifiedtype, if any; otherwise, returnnull.- Overrides:
getClientBehaviorRendererin classRenderKit- Parameters:
behaviorRendererType- type of the requestedClientBehaviorRendererinstance- Returns:
- the
ClientBehaviorRendererinstance
-
getClientBehaviorRendererTypes
Description copied from class:RenderKitReturn an
Iteratorover theClientBehaviorRenderertypes.- Overrides:
getClientBehaviorRendererTypesin classRenderKit- Returns:
- an
Iteratorover theClientBehaviorRenderer
-
getResponseStateManager
Description copied from class:RenderKitReturn an instance of
ResponseStateManagerto handle rendering technology specific state management decisions.- Specified by:
getResponseStateManagerin classRenderKit- Returns:
- the
ResponseStateManager
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String desiredContentTypeList, String characterEncoding) Description copied from class:RenderKitUse the provided
Writerto create a newResponseWriterinstance for the specified (optional) content type, and character encoding.Implementors are advised to consult the
getCharacterEncoding()method of classServletResponseto get the required value for the characterEncoding for this method. Since theWriterfor 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.- Specified by:
createResponseWriterin classRenderKit- Parameters:
writer- the Writer around which thisResponseWritermust be built.desiredContentTypeList- 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.
-
createResponseStream
Description copied from class:RenderKitUse the provided
OutputStreamto create a newResponseStreaminstance.- Specified by:
createResponseStreamin classRenderKit- Parameters:
out- theOutputStreamaround which to create theResponseStream- Returns:
- the new
ResponseStream
-
getComponentFamilies
Description copied from class:RenderKitReturn an
Iteratorover the component-family entries supported by thisRenderKitinstance.The default implementation of this method returns an empty
Iterator- Overrides:
getComponentFamiliesin classRenderKit- Returns:
- Return an
Iteratorover the component-family entries - See Also:
-
getRendererTypes
Description copied from class:RenderKitReturn an
Iteratorover the renderer-type entries for the given component-family.If the specified
componentFamilyis not known to thisRenderKitimplementation, return an emptyIteratorThe default implementation of this method returns an empty
Iterator- Overrides:
getRendererTypesin classRenderKit- Parameters:
componentFamily- one of the members of theIteratorreturned byRenderKit.getComponentFamilies().- Returns:
- an
Iteratorover the renderer-type - See Also:
-