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
public class JSONAsHTMLResult extends com.opensymphony.webwork.dispatcher.json.JSONResult
Attempt to retrieve an instance ofJSONObject
from WebWork's ValueStack through property returned fromJSONResult.getJSONObjectProperty()
and write the String representation of the retrivedJSONObject
toHttpServletResponse
's outputstream. This class differs fromJSONResult
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_TYPE
-
Constructor Summary
Constructors Constructor Description JSONAsHTMLResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(com.opensymphony.xwork2.ActionInvocation invocation)
-
-
-
Field Detail
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
-