org.apache.tiles.request.render

## Interface Renderer

- All Known Implementing Classes:
    ChainedDelegateRenderer, DefinitionRenderer, DispatchRenderer, StringRenderer, StrutsFreeMarkerAttributeRenderer, VelocityRenderer

      public interface Renderer

  An object that can render a path, depending on the request passed as a parameter.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isRenderable(String path, Request request)` Checks if this renderer can render a path.
    `void` | `render(String path, Request request)` Renders a path.

- - ### Method Detail

    - #### render

          void render(String path,
                      Request request)
               throws IOException

      Renders a path.
      Parameters:
        `path` - The path to render.
        `request` - The Tiles request context.
      Throws:
        `IOException` - If something goes wrong during rendition.

    - #### isRenderable

          boolean isRenderable(String path,
                               Request request)

      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.
      Parameters:
        `path` - The path to be rendered.
        `request` - The request context.
      Returns:
        `true` if this renderer can render the attribute.

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.