Package org.helm.rest

Class AjaxTool


  • @Path("/ajaxtool")
    public class AjaxTool
    extends Object
    • Constructor Detail

      • AjaxTool

        public AjaxTool()
    • 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)
      • wrapAjaxError

        public static String wrapAjaxError​(String error)