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.JSONResultAttempt to retrieve an instance ofJSONObjectfrom WebWork's ValueStack through property returned fromJSONResult.getJSONObjectProperty()and write the String representation of the retrivedJSONObjecttoHttpServletResponse's outputstream. This class differs fromJSONResultin 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 StringCONTENT_TYPE
-
Constructor Summary
Constructors Constructor Description JSONAsHTMLResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.opensymphony.xwork2.ActionInvocation invocation)
-
-
-
Field Detail
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
-