com.atlassian.confluence.json
Class JsonResult
java.lang.Object
com.opensymphony.webwork.dispatcher.WebWorkResultSupport
com.atlassian.confluence.json.JsonResult
- All Implemented Interfaces:
- com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, java.io.Serializable
public class JsonResult
- extends com.opensymphony.webwork.dispatcher.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
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport |
DEFAULT_PARAM, parse |
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics |
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER |
Method Summary |
protected void |
doExecute(java.lang.String finalDestination,
com.opensymphony.xwork.ActionInvocation actionInvocation)
|
java.lang.String |
getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation)
|
void |
setJsonator(Jsonator<java.lang.Object> jsonator)
|
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport |
execute, setLocation, setParse |
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(java.lang.String finalDestination,
com.opensymphony.xwork.ActionInvocation actionInvocation)
throws java.lang.Exception
- Specified by:
doExecute
in class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
- Throws:
java.lang.Exception
setJsonator
public void setJsonator(Jsonator<java.lang.Object> jsonator)
getJsonString
public java.lang.String getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation)
Copyright © 2003-2011 Atlassian. All Rights Reserved.