Package org.apache.tiles.request.render
Class ChainedDelegateRenderer
java.lang.Object
org.apache.tiles.request.render.ChainedDelegateRenderer
- All Implemented Interfaces:
Renderer
Renders an attribute that has no associated renderer using delegation to other renderers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeRenderer
(Renderer renderer) Adds an attribute renderer to the list.boolean
isRenderable
(String value, Request request) Checks if this renderer can render a path.void
Renders a path.
-
Constructor Details
-
ChainedDelegateRenderer
public ChainedDelegateRenderer()Constructor.
-
-
Method Details
-
addAttributeRenderer
Adds an attribute renderer to the list. The first inserted this way, the first is checked when rendering.- Parameters:
renderer
- The renderer to add.
-
render
Description copied from interface:Renderer
Renders a path.- Specified by:
render
in interfaceRenderer
- Parameters:
value
- The path to render.request
- The Tiles request context.- Throws:
IOException
- If something goes wrong during rendition.
-
isRenderable
Checks if this renderer can render a path. Note that this does not mean it is the best renderer available, but checks only its capability.- Specified by:
isRenderable
in interfaceRenderer
- Parameters:
value
- The path to be rendered.request
- The request context.- Returns:
true
if this renderer can render the attribute.
-