Package spark

Interface ResponseTransformer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ResponseTransformer
A ResponseTransformer holds the implementation of the 'render' method.
  • Method Summary

    Modifier and Type
    Method
    Description
    render(Object model)
    Method called for rendering the output.
  • Method Details

    • render

      String render(Object model) throws Exception
      Method called for rendering the output.
      Parameters:
      model - object used to render output.
      Returns:
      message that it is sent to client.
      Throws:
      Exception - when render fails