Interface SafeHtmlRenderer<T>

Type Parameters:
T - the type to render
All Known Implementing Classes:
AbstractSafeHtmlRenderer, ImageResourceRenderer, SimpleSafeHtmlRenderer

public interface SafeHtmlRenderer<T>
An object that can render other objects of a particular type into safe HTML form. Allows decoupling that is useful for a dependency-injection architecture.
  • Method Summary

    Modifier and Type
    Method
    Description
    render(T object)
    Renders object as safe HTML.
    void
    render(T object, SafeHtmlBuilder builder)
    Renders object as safe HTML, appended directly to builder.
  • Method Details

    • render

      SafeHtml render(T object)
      Renders object as safe HTML.
    • render

      void render(T object, SafeHtmlBuilder builder)
      Renders object as safe HTML, appended directly to builder.