-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientBehaviorRenderer
(String behaviorRendererType, ClientBehaviorRenderer behaviorRenderer) Register the specifiedClientBehaviorRenderer
instance, associated with the specified componenttype
, to the set ofClientBehaviorRenderer
s registered with thisRenderKit
, replacing any previously registeredClientBehaviorRenderer
for this type.void
addRenderer
(String family, String rendererType, Renderer renderer) Use the providedOutputStream
to create a newResponseStream
instance.createResponseWriter
(Writer writer, String desiredContentTypeList, String characterEncoding) Use the providedWriter
to create a newResponseWriter
instance for the specified (optional) content type, and character encoding.getClientBehaviorRenderer
(String behaviorRendererType) Return theClientBehaviorRenderer
instance most recently registered for the specifiedtype
, if any; otherwise, returnnull
.Return anIterator
over theClientBehaviorRenderer
types.Return anIterator
over the component-family entries supported by thisRenderKit
instance.getRenderer
(String family, String rendererType) Return theRenderer
instance most recently registered for the specified componentfamily
andrendererType
, if any; otherwise, returnnull
.getRendererTypes
(String componentFamily) Return anIterator
over the renderer-type entries for the given component-family.Return an instance ofResponseStateManager
to handle rendering technology specific state management decisions.
-
Constructor Details
-
RenderKitImpl
public RenderKitImpl()
-
-
Method Details
-
addRenderer
Description copied from class:RenderKit
Register the specified
Renderer
instance, associated with the specified componentfamily
andrendererType
, to the set ofRenderer
s registered with thisRenderKit
, replacing any previously registeredRenderer
for this combination of identifiers.- Specified by:
addRenderer
in classRenderKit
- Parameters:
family
- Component family of theRenderer
to registerrendererType
- Renderer type of theRenderer
to registerrenderer
-Renderer
instance we are registering
-
getRenderer
Description copied from class:RenderKit
Return the
Renderer
instance most recently registered for the specified componentfamily
andrendererType
, if any; otherwise, returnnull
.- Specified by:
getRenderer
in classRenderKit
- Parameters:
family
- Component family of the requestedRenderer
instancerendererType
- Renderer type of the requestedRenderer
instance- Returns:
- the
Renderer
instance
-
addClientBehaviorRenderer
public void addClientBehaviorRenderer(String behaviorRendererType, ClientBehaviorRenderer behaviorRenderer) Description copied from class:RenderKit
Register the specified
ClientBehaviorRenderer
instance, associated with the specified componenttype
, to the set ofClientBehaviorRenderer
s registered with thisRenderKit
, replacing any previously registeredClientBehaviorRenderer
for this type.- Overrides:
addClientBehaviorRenderer
in classRenderKit
- Parameters:
behaviorRendererType
- type of theClientBehaviorRenderer
to registerbehaviorRenderer
-ClientBehaviorRenderer
instance we are registering
-
getClientBehaviorRenderer
Description copied from class:RenderKit
Return the
ClientBehaviorRenderer
instance most recently registered for the specifiedtype
, if any; otherwise, returnnull
.- Overrides:
getClientBehaviorRenderer
in classRenderKit
- Parameters:
behaviorRendererType
- type of the requestedClientBehaviorRenderer
instance- Returns:
- the
ClientBehaviorRenderer
instance
-
getClientBehaviorRendererTypes
Description copied from class:RenderKit
Return an
Iterator
over theClientBehaviorRenderer
types.- Overrides:
getClientBehaviorRendererTypes
in classRenderKit
- Returns:
- an
Iterator
over theClientBehaviorRenderer
-
getResponseStateManager
Description copied from class:RenderKit
Return an instance of
ResponseStateManager
to handle rendering technology specific state management decisions.- Specified by:
getResponseStateManager
in classRenderKit
- Returns:
- the
ResponseStateManager
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String desiredContentTypeList, String characterEncoding) Description copied from class:RenderKit
Use the provided
Writer
to create a newResponseWriter
instance for the specified (optional) content type, and character encoding.Implementors are advised to consult the
getCharacterEncoding()
method of classServletResponse
to get the required value for the characterEncoding for this method. Since theWriter
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.- Specified by:
createResponseWriter
in classRenderKit
- Parameters:
writer
- the Writer around which thisResponseWriter
must be built.desiredContentTypeList
- an "Accept header style" list of content types for this response, ornull
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 Stringtext/html
,application/xhtml+xml
,application/xml
ortext/xml
. This may change in a future version. The RenderKit must support a value for this argument that comes straight from theAccept
HTTP header, and therefore requires parsing according to the specification of theAccept
header. Please see Section 14.1 of RFC 2616 for the specification of theAccept
header.characterEncoding
- such as "ISO-8859-1" for this ResponseWriter, ornull
if theRenderKit
should choose the best fit. Please see the IANA for a list of character encodings.- Returns:
- a new
ResponseWriter
.
-
createResponseStream
Description copied from class:RenderKit
Use the provided
OutputStream
to create a newResponseStream
instance.- Specified by:
createResponseStream
in classRenderKit
- Parameters:
out
- theOutputStream
around which to create theResponseStream
- Returns:
- the new
ResponseStream
-
getComponentFamilies
Description copied from class:RenderKit
Return an
Iterator
over the component-family entries supported by thisRenderKit
instance.The default implementation of this method returns an empty
Iterator
- Overrides:
getComponentFamilies
in classRenderKit
- Returns:
- Return an
Iterator
over the component-family entries - See Also:
-
getRendererTypes
Description copied from class:RenderKit
Return an
Iterator
over the renderer-type entries for the given component-family.If the specified
componentFamily
is not known to thisRenderKit
implementation, return an emptyIterator
The default implementation of this method returns an empty
Iterator
- Overrides:
getRendererTypes
in classRenderKit
- Parameters:
componentFamily
- one of the members of theIterator
returned byRenderKit.getComponentFamilies()
.- Returns:
- an
Iterator
over the renderer-type - See Also:
-