com.atlassian.confluence.json
Class JsonResult

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended by com.atlassian.confluence.json.JsonResult
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, 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

Field Summary
 
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
 
Constructor Summary
JsonResult()
           
 
Method Summary
protected  void doExecute(String finalDestination, com.opensymphony.xwork.ActionInvocation actionInvocation)
           
 String getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation)
           
 void setJsonator(Jsonator<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
 

Constructor Detail

JsonResult

public JsonResult()
Method Detail

doExecute

protected void doExecute(String finalDestination,
                         com.opensymphony.xwork.ActionInvocation actionInvocation)
                  throws Exception
Specified by:
doExecute in class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
Throws:
Exception

setJsonator

public void setJsonator(Jsonator<Object> jsonator)

getJsonString

public String getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation)


Copyright © 2003-2013 Atlassian. All Rights Reserved.