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 TypeMethodDescriptionvoidaddAttributeRenderer(Renderer renderer) Adds an attribute renderer to the list.booleanisRenderable(String value, Request request) Checks if this renderer can render a path.voidRenders 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:RendererRenders a path.- Specified by:
renderin 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:
isRenderablein interfaceRenderer- Parameters:
value- The path to be rendered.request- The request context.- Returns:
trueif this renderer can render the attribute.
-