public abstract class DetailPlugin extends SimonConsolePlugin
| Modifier | Constructor and Description |
|---|---|
protected |
DetailPlugin(String id,
String label) |
| Modifier and Type | Method and Description |
|---|---|
DetailHtmlBuilder |
executeHtml(ActionContext context,
DetailHtmlBuilder htmlBuilder,
StringifierFactory htmlStringifierFactory,
Simon simon)
Callback for flat HTML rendering.
|
ObjectJS |
executeJson(ActionContext context,
StringifierFactory jsonStringifierFactory,
Simon simon)
Callback for flat JSON rendering.
|
boolean |
supports(Simon simon)
Indicates this plugin applies to this kind of Simon.
|
addResource, getActionBindings, getId, getLabel, getResources, getResources, toJsonprotected DetailPlugin(String id, String label)
public boolean supports(Simon simon)
simon - Simontrue if plugin can be executedpublic DetailHtmlBuilder executeHtml(ActionContext context, DetailHtmlBuilder htmlBuilder, StringifierFactory htmlStringifierFactory, Simon simon) throws IOException
context - Context (Request, parameters...)htmlBuilder - HTML Builder (Response generation helper)simon - Simon to render.IOExceptionpublic ObjectJS executeJson(ActionContext context, StringifierFactory jsonStringifierFactory, Simon simon)
context - Context (Request, parameters...)simon - Simon to renderCopyright © 2019. All rights reserved.