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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String render​(java.lang.Object model)
      Method called for rendering the output.
    • Method Detail

      • render

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