Package com.atlassian.bamboo.ww2.results
Class JSONAsHTMLResult
java.lang.Object
com.atlassian.bamboo.ww2.results.JSONResult
com.atlassian.bamboo.ww2.results.JSONAsHTMLResult
- All Implemented Interfaces:
Serializable,org.apache.struts2.result.Result
Attempt to retrieve an instance of
JSONObject from WebWork's ValueStack through property returned from
JSONResult.getJSONObjectProperty() and write the String representation of the retrieved JSONObject to
HttpServletResponse's output stream. 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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.atlassian.bamboo.ww2.results.JSONResult
getContentType, getJSONObject, getJSONObjectProperty, getServletResponse, setContentType, setJSONObjectProperty
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
JSONAsHTMLResult
public JSONAsHTMLResult()
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.apache.struts2.result.Result- Overrides:
executein classJSONResult- Throws:
Exception
-