com.atlassian.bamboo.ww2.common
Class JsonHelper

java.lang.Object
  extended by com.atlassian.bamboo.ww2.common.JsonHelper

public class JsonHelper
extends java.lang.Object


Method Summary
static com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject(java.lang.Object bean, java.lang.Iterable<java.lang.String> properties)
           
static com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject(java.lang.Object bean, java.lang.String... properties)
           
static void returnJsonResponse(javax.servlet.http.HttpServletResponse response, com.opensymphony.webwork.dispatcher.json.JSONObject json)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

returnJsonResponse

public static void returnJsonResponse(javax.servlet.http.HttpServletResponse response,
                                      com.opensymphony.webwork.dispatcher.json.JSONObject json)
                               throws com.opensymphony.webwork.dispatcher.json.JSONException,
                                      java.io.IOException
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
java.io.IOException

buildJsonObject

@NotNull
public static com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject(java.lang.Object bean,
                                                                                          java.lang.String... properties)

buildJsonObject

@NotNull
public static com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject(java.lang.Object bean,
                                                                                          java.lang.Iterable<java.lang.String> properties)


Copyright © 2011 Atlassian. All Rights Reserved.