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

    Modifier and Type
    Method
    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 Details

    • 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.