Class ObjectResultProcessor

java.lang.Object
dev.voidframework.web.http.resultprocessor.ObjectResultProcessor
All Implemented Interfaces:
ResultProcessor

public class ObjectResultProcessor extends Object implements ResultProcessor
Process a simple object.
  • Constructor Details

    • ObjectResultProcessor

      public ObjectResultProcessor()
      Build an empty new instance. This constructor is useful during deserialize process
    • ObjectResultProcessor

      public ObjectResultProcessor(Object object)
      Build a new instance.
      Parameters:
      object - Object to process
  • Method Details

    • process

      public void process(Context context, com.typesafe.config.Config configuration, TemplateRenderer templateRenderer)
      Description copied from interface: ResultProcessor
      Process the result.
      Specified by:
      process in interface ResultProcessor
      Parameters:
      context - The current context
      configuration - The application configuration
      templateRenderer - The template rendered if available
    • getInputStream

      public InputStream getInputStream()
      Description copied from interface: ResultProcessor
      Get the result input stream.
      Specified by:
      getInputStream in interface ResultProcessor
      Returns:
      The result input stream