Interface JStachioFilter.FilterChain

All Known Implementing Classes:
HelloModelView, HelloModelView, MessagePageRenderer, MessagePageRenderer
Enclosing interface:
JStachioFilter

public static interface JStachioFilter.FilterChain
A fully composed chain that renders a model by applying filtering.
Author:
agentgt
API Note
The filter chain should be stateless and threadsafe as there is no guarantee that a filter chain will be recreated for the same TemplateInfo.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    A marker method that the filter is broken and should not be used.
    void
    process(Object model, Appendable appendable)
    Renders the passed in model.
  • Method Details

    • process

      void process(Object model, Appendable appendable) throws IOException
      Renders the passed in model.
      Parameters:
      model - a model assumed never to be null.
      appendable - the appendable to write to.
      Throws:
      IOException - if there is an error writing to the appendable
    • isBroken

      default boolean isBroken(Object model)
      A marker method that the filter is broken and should not be used. This mainly for the filter pipeline to determine if filter should be called.
      Parameters:
      model - the model that would be rendered
      Returns:
      by default false