Package com.atlassian.bamboo.ww2.results
Class JSONAsHTMLResult
java.lang.Object
com.opensymphony.webwork.dispatcher.json.JSONResult
com.atlassian.bamboo.ww2.results.JSONAsHTMLResult
- All Implemented Interfaces:
com.opensymphony.xwork2.Result,Serializable,org.apache.struts2.result.Result
public class JSONAsHTMLResult
extends com.opensymphony.webwork.dispatcher.json.JSONResult
Attempt to retrieve an instance of
JSONObject from WebWork's ValueStack through property returned from
JSONResult.getJSONObjectProperty() and write the String representation of the retrived JSONObject to
HttpServletResponse's outputstream. This class differs from JSONResult in that it sets the
content-type header to text/html so that the JSON string can be wrapped by HTML (e.g. a - See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.Result
com.opensymphony.xwork2.Result.LegacyAdapter -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(com.opensymphony.xwork2.ActionInvocation invocation) Methods inherited from class com.opensymphony.webwork.dispatcher.json.JSONResult
getContentType, getJSONObject, getJSONObjectProperty, getServletResponse, setContentType, setJSONObjectPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.xwork2.Result
execute
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
JSONAsHTMLResult
public JSONAsHTMLResult()
-
-
Method Details
-
execute
- Specified by:
executein interfacecom.opensymphony.xwork2.Result- Overrides:
executein classcom.opensymphony.webwork.dispatcher.json.JSONResult- Throws:
Exception
-