Class ObjectResultProcessor
java.lang.Object
dev.voidframework.web.http.resultprocessor.ObjectResultProcessor
- All Implemented Interfaces:
ResultProcessor
Process a simple object.
-
Constructor Summary
ConstructorsConstructorDescriptionBuild an empty new instance.ObjectResultProcessor(Object object) Build a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the result input stream.voidprocess(Context context, com.typesafe.config.Config configuration, TemplateRenderer templateRenderer) Process the result.
-
Constructor Details
-
ObjectResultProcessor
public ObjectResultProcessor()Build an empty new instance. This constructor is useful during deserialize process -
ObjectResultProcessor
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:ResultProcessorProcess the result.- Specified by:
processin interfaceResultProcessor- Parameters:
context- The current contextconfiguration- The application configurationtemplateRenderer- The template rendered if available
-
getInputStream
Description copied from interface:ResultProcessorGet the result input stream.- Specified by:
getInputStreamin interfaceResultProcessor- Returns:
- The result input stream
-