Package dev.voidframework.web.http
Interface Result.ResultProcessor
- Enclosing class:
- Result
public static interface Result.ResultProcessor
Result processor. In charge to transform a content (any type) into an
InputStream.-
Method Summary
Modifier and TypeMethodDescriptionGet the result input stream.voidprocess(Context context, com.typesafe.config.Config configuration, TemplateRenderer templateRenderer) Process the result.
-
Method Details
-
process
void process(Context context, com.typesafe.config.Config configuration, TemplateRenderer templateRenderer) Process the result.- Parameters:
context- The current contextconfiguration- The application configurationtemplateRenderer- The template rendered if available
-
getInputStream
InputStream getInputStream()Get the result input stream.- Returns:
- The result input stream
-