RESTfulãªãµã¼ãã建ã¦ããã¨æã£ãæã«ä½¿ãã®ãJerseyã ãã¦ãRESTãªã ãã§ããã£ã±ãã¯ãã¹ãã¡ã¤ã³ã¨ã対å¿ãããªãã¨ãâã ã¨ãããã¨ã§jsonp対å¿ã®æ¹æ³ã @Path("/jsonget") @GET public JSONWithPadding getMethod(@Context HttpServletRequest request, @QueryParam("callback") @DefaultValue("callback") String callback){ //é©å½ã«è¿å´ããæ å ±ãçæ Object resultObj = ã»ã»ã»; //è¿å´ããããªãã¸ã§ã¯ããå ã«JSONWithPaddingãçæ return new JSONWithPadding(resultObj, callback); }ããã ãã ããã ãã§ããªã¯ã¨ã¹ãã«ãã£ã¦JSONãJ
{{#tags}}- {{label}}
{{/tags}}