com.atlassian.confluence.json
Class JsonResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.atlassian.confluence.json.JsonResult
- All Implemented Interfaces:
- WebWorkStatics, Result, Serializable
public class JsonResult
- extends WebWorkResultSupport
This result will format the the a result of the action using JSON. This result will look at the
JSONString property of the action and will send it to the client.
This result will set the content type to 'application/javascript'.
More recent webwork libraries contain a slightly different implementation a JSON Result. This result
was based on that implementation to (hopefully) allow for a clean upgrade path when the time comes to update
webwork.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonResult
public JsonResult()
doExecute
protected void doExecute(String finalDestination,
ActionInvocation actionInvocation)
throws Exception
- Specified by:
doExecute
in class WebWorkResultSupport
- Throws:
Exception
setJsonator
public void setJsonator(Jsonator<Object> jsonator)
getJsonString
public String getJsonString(ActionInvocation actionInvocation)