Package com.atlassian.confluence.json
Class JsonResult
- java.lang.Object
-
- org.apache.struts2.result.StrutsResultSupport
-
- com.atlassian.confluence.json.JsonResult
-
- All Implemented Interfaces:
com.opensymphony.xwork2.Result
,Serializable
,org.apache.struts2.StrutsStatics
public class JsonResult extends org.apache.struts2.result.StrutsResultSupport
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
-
-
Constructor Summary
Constructors Constructor Description JsonResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute(String finalDestination, com.opensymphony.xwork2.ActionInvocation actionInvocation)
String
getJsonString(com.opensymphony.xwork2.ActionInvocation actionInvocation)
void
setJsonator(Jsonator<Object> jsonator)
-
-
-
Method Detail
-
doExecute
protected void doExecute(String finalDestination, com.opensymphony.xwork2.ActionInvocation actionInvocation) throws Exception
- Specified by:
doExecute
in classorg.apache.struts2.result.StrutsResultSupport
- Throws:
Exception
-
getJsonString
public String getJsonString(com.opensymphony.xwork2.ActionInvocation actionInvocation)
-
-