public abstract class AbstractJsonAction extends Action
| Modifier and Type | Field and Description |
|---|---|
protected JsonStringifierFactory |
jsonStringifierFactory
Type converter Object → JSON String.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJsonAction(ActionContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected ObjectJS |
createAttributesObjectJS(Simon simon) |
protected ObjectJS |
createObjectJS(Simon simon)
Transforms a Simon into a JSON object.
|
void |
execute()
Execute action
|
void |
readParameters()
Parse HTTP Request parameters and store them locally
|
dontCache, getContextprotected final JsonStringifierFactory jsonStringifierFactory
protected AbstractJsonAction(ActionContext context)
public void readParameters()
ActionreadParameters in class Actionprotected ObjectJS createObjectJS(Simon simon)
simon - Simonprotected final ObjectJS createAttributesObjectJS(Simon simon)
public void execute() throws javax.servlet.ServletException, IOException, ActionException
Actionexecute in class Actionjavax.servlet.ServletExceptionIOExceptionActionExceptionCopyright © 2019. All rights reserved.