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, getContext
protected final JsonStringifierFactory jsonStringifierFactory
protected AbstractJsonAction(ActionContext context)
public void readParameters()
Action
readParameters
in class Action
protected ObjectJS createObjectJS(Simon simon)
simon
- Simonprotected final ObjectJS createAttributesObjectJS(Simon simon)
public void execute() throws javax.servlet.ServletException, IOException, ActionException
Action
execute
in class Action
javax.servlet.ServletException
IOException
ActionException
Copyright © 2019. All rights reserved.