Package org.helm.rest
Class AjaxTool
- java.lang.Object
-
- org.helm.rest.AjaxTool
-
@Path("/ajaxtool") public class AjaxTool extends Object
-
-
Constructor Summary
Constructors Constructor Description AjaxTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponseCmdGet(javax.servlet.http.HttpServletRequest request)javax.ws.rs.core.ResponseCmdPost(javax.servlet.http.HttpServletRequest request)static StringwrapAjaxError(String error)static StringwrapAjaxResult(ArrayList ret)static StringwrapAjaxResult(org.json.JSONObject ret)
-
-
-
Method Detail
-
CmdGet
@GET @Consumes({"application/json","application/x-www-form-urlencoded","text/html","text/plain","multipart/form-data"}) @Produces({"text/plain","application/json"}) @Path("/get") public javax.ws.rs.core.Response CmdGet(@Context javax.servlet.http.HttpServletRequest request)
-
CmdPost
@POST @Consumes({"application/json","application/x-www-form-urlencoded","text/html","text/plain","multipart/form-data"}) @Produces({"text/plain","text/html","application/json"}) @Path("/post") public javax.ws.rs.core.Response CmdPost(@Context javax.servlet.http.HttpServletRequest request)
-
wrapAjaxResult
public static String wrapAjaxResult(org.json.JSONObject ret)
-
-