{"id":11706,"date":"2016-09-20T09:00:14","date_gmt":"2016-09-20T00:00:14","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=11706"},"modified":"2018-11-14T16:33:45","modified_gmt":"2018-11-14T07:33:45","slug":"jersey-client-api","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2016\/09\/20\/jersey-client-api\/","title":{"rendered":"Jersey Client API  : Java \u3067Web API Client \u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u79c1\u305f\u3061\u306f\u30b7\u30b9\u30c6\u30e0\u3092<a href=\"https:\/\/www.techscore.com\/blog\/2016\/07\/08\/legacy-saas-system-revolution\/\" target=\"_blank\">\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u30fb\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306b\u5206\u5272\u3059\u308b<\/a>\u65b9\u91dd\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u9593\u306e\u901a\u4fe1\u3001Web API \u3092\u547c\u3073\u51fa\u3059\u51e6\u7406\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u51e6\u7406\u3092Java\u3067\u958b\u767a\u3059\u308b\u5834\u5408\u3001\u4f55\u3092\u3064\u304b\u3063\u3066\u3069\u3046\u66f8\u3044\u305f\u3089\u3044\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u5f0a\u793e<a href=\"https:\/\/www.synergy-marketing.co.jp\/\" target=\"_blank\">\u30b7\u30ca\u30b8\u30fc\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0<\/a>\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u958b\u767a\u306e\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306a\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u76ee\u6b21<\/p>\n<ul>\n<li><a href=\"#jersey\">Jersey\u3068\u306f<\/a><\/li>\n<li><a href=\"#build_client\">\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f5c\u6210<\/a><\/li>\n<li><a href=\"#get\">GET\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c<\/a><\/li>\n<li><a href=\"#post\">POST\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c<\/a><\/li>\n<li><a href=\"#header\">HTTP\u30d8\u30c3\u30c0\u30fc\u306e\u6307\u5b9a<\/a><\/li>\n<li><a href=\"#json\">JSON\u306e\u30d1\u30fc\u30b9<\/a><\/li>\n<\/ul>\n<p><a name=\"jersey\"><\/p>\n<h2>Jersey\u3068\u306f<\/h2>\n<p><\/a><br \/>\n\u30e9\u30a4\u30d6\u30e9\u30ea\u306f Jersey \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002Jersey ( <a href=\"https:\/\/jersey.java.net\/\" target=\"_blank\">https:\/\/jersey.java.net\/<\/a>) \u306f\u3001RESTful Web \u30b5\u30fc\u30d3\u30b9\u3068\u305d\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eJava API \u6a19\u6e96\u898f\u683c\u3067\u3042\u308bJAX-RS API (<a href=\"http:\/\/jax-rs-spec.java.net\/\" target=\"_blank\">http:\/\/jax-rs-spec.java.net\/<\/a>) \u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u5b9f\u88c5\u3067\u3059\u3002\u57f7\u7b46\u6642\u70b9\u3067\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.23.1\u3067\u3059\u3002\u4ee5\u964d\u3001\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n<a name=\"build_client\"><\/p>\n<h2>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f5c\u6210<\/h2>\n<p><\/a><br \/>\n\u6700\u521d\u306f\u3001RESTful Web API \u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nimport javax.ws.rs.client.ClientBuilder;\r\nimport javax.ws.rs.client.Client;\r\n\r\nprivate Client client = ClientBuilder.newClient();\r\n<\/pre>\n<p>Client \u306f\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3067\u3059\u3002\u307e\u305f\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u307e\u3059\u306e\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5185\u3067\u3080\u3084\u307f\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u305b\u305a\u306b\u5171\u6709\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p><a name=\"get\"><\/p>\n<h2>GET \u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c<\/h2>\n<p><\/a><\/p>\n<p>GET \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java;decode:true \">\r\nimport javax.ws.rs.client.WebTarget;\r\n\r\n...\r\n\r\nWebTarget target = client.target(\"https:\/\/api.example.com\")\r\n    .path(\"\/oauth\/access_token\") \r\n    .queryParam(\"token\", \"shortAccessToken\");\r\n\r\ntry {\r\n    String result = target.request().get(String.class);\r\n} catch (BadRequestException e) {\r\n    logger.error(\"response=\" + e.getResponse().readEntity(String.class), e);\r\n    throw e;\r\n}\r\n<\/pre>\n<p>\u307e\u305a\u3001Client\u306etarget \u30e1\u30bd\u30c3\u30c9\u3067WebTarget \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u5f15\u6570\u306b\u306f\u3001\u30a2\u30af\u30bb\u30b9\u5148URL\u306e\u57fa\u672c\u90e8\u5206\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java; decode:true; first-line:5\">\r\nWebTarget target = client.target(\"https:\/\/api.example.com\")\r\n<\/pre>\n<p>\u7d9a\u3044\u3066\u3001path\u30e1\u30bd\u30c3\u30c9\u3067\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001target\u306f\"https:\/\/api.example.com\/oauth\/access_token\" \u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\n    .path(\"\/oauth\/access_token\") \r\n<\/pre>\n<p>\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306fqueryParam \u30e1\u30bd\u30c3\u30c9\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\n    .queryParam(\"token\", \"shortAccessToken\");\r\n<\/pre>\n<p>path\u30e1\u30bd\u30c3\u30c9\u306f\u30d1\u30b9\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u5b9f\u969b\u306b\u306f<a href=\"https:\/\/www.techscore.com\/blog\/2016\/08\/08\/%E9%96%8B%E7%99%BA%E6%96%B0%E5%8D%92%E3%81%AB%E6%8D%A7%E3%81%90%E3%80%81%E5%9F%BA%E6%9C%AC%E3%81%AE%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0%E3%81%A8%E8%A8%88%E7%AE%97%E9%87%8F\/\" target=\"_blank\">\"https:\/\/www.techscore.com\/blog\/2016\/08\/08\/%E9%96..\"<\/a>\u306e\u3088\u3046\u306aURL\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true\" >\r\nWebTarget target = client.target(\"https:\/\/www.techscore.com\/blog\")\r\n    .path(\"\/2016\/08\/08\/\u958b\u767a\u65b0\u5352\u306b\u6367\u3050\u3001\u57fa\u672c\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u8a08\u7b97\u91cf\");\r\n<\/pre>\n<p>\u305d\u306e\u305f\u3081\u3001\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306fpath\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u306a\u304f\u3001\u5fc5\u305aqueryParam\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u6307\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002path\u306b\u6307\u5b9a\u3057\u305f\u5834\u5408\u306fURL\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u610f\u56f3\u3057\u305f\u5834\u6240\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\n\/\/https:\/\/api.example.com\/oauth\/access_token?token=shortAccessToken \u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u306a\u3044\r\nWebTarget target = client.target(\"https:\/\/api.example.com\")\r\n    .path(\"\/oauth\/access_token?token=shortAccessToken\") ;\r\n<\/pre>\n<p>\u307e\u305f\u3001queryParam\u30e1\u30bd\u30c3\u30c9\u3082\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5024\u3092URL\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u306e\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3059\u524d\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u3092\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308b\u306b\u306f\u3001\u307e\u305aWebTarget\u306erequest\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8d77\u52d5\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08Invocation.Builder\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nInvocation.Builder\u306eget \u30e1\u30bd\u30c3\u30c9\u3067\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8GET \u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u5f15\u6570\u306b String.class \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001HTTP \u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6210\u529f\u3057\u305f\uff08HTTP \u30b3\u30fc\u30c9\u3000200\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8fd4\u3063\u305f\uff09\u5834\u5408\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u30dc\u30c7\u30a3\u90e8\u306e\u5024\u3092\u6587\u5b57\u5217\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\n\u3000String result = target.request().get(String.class);\r\n<\/pre>\n<p>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\uff08400\u756a\u53f0\/500\u756a\u53f0\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u304c\u8fd4\u3063\u305f\uff09\u5834\u5408\u3001BadRequestException \u4f8b\u5916\u3092\u6295\u3052\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\ntry{\r\n ... \r\n} catch (BadRequestException e) {\r\n    \/\/ \u4f8b\u5916\u3088\u308a\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5185\u5bb9\u3084\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u53ef\u80fd\r\n    logger.error(\"response=\" + e.getResponse().readEntity(String.class), e);\r\n    throw e;\r\n}\r\n<\/pre>\n<p><a name=\"post\"><\/p>\n<h2>POST \u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u884c<\/h2>\n<p><\/a><\/p>\n<p>POST\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308a\u3001\u30dc\u30c7\u30a3\u90e8\u306b\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3057\u3066\u9001\u4fe1\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bEntity\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nimport javax.ws.rs.client.Entity;\r\nimport javax.ws.rs.core.Form;\r\n\r\n...\r\n\r\nEntity<Form> entity = Entity.entity(new Form().param(\"name\", name).param(\"subtype\", \"CUSTOM\"),\r\n    MediaType.APPLICATION_FORM_URLENCODED_TYPE);\r\ntry {\r\n    String result = client.target(\"https:\/\/api.example.com\")\r\n        .path(\"\/path_to_post_method\")\r\n        .request()\r\n        .post(entity, String.class);\r\n} catch (BadRequestException e) {\r\n    logger.error(\"response=\" + e.getResponse().readEntity(String.class), e);\r\n    throw e;\r\n}\r\n<\/pre>\n<p>\u307e\u305a\u3001\u30dc\u30c7\u30a3\u90e8\u3092\u8868\u3059Entity\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nEntity<Form> entity = Entity.entity(new Form().param(\"name\", name).param(\"subtype\", \"CUSTOM\"),\r\n    MediaType.APPLICATION_FORM_URLENCODED_TYPE);\r\n<\/pre>\n<p>Entity\u3067\u3055\u307e\u3056\u307e\u306aMediaType \u306e\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3067\u304d\u307e\u3059\u304c\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\u306f\u3001Form\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001GET\u306e\u5834\u5408\u3068\u540c\u3058\u3088\u3046\u306b Invocation.Builder\u3092\u4f5c\u6210\u3057\u305f\u3042\u3068\u3001post\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002post\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306bEntity\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nString result = client.target(\"https:\/\/api.example.com\")\r\n    .path(\"\/path_to_post_method\")\r\n    .request()\r\n    .post(entity, String.class);\r\n<\/pre>\n<p><a name=\"header\"><\/p>\n<h2>HTTP\u30d8\u30c3\u30c0\u306e\u6307\u5b9a<\/h2>\n<p><\/a><\/p>\n<p>\u8a8d\u8a3c\u306a\u3069\u306e\u305f\u3081\u306b\u3001HTTP \u30d8\u30c3\u30c0\u30fc\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nimport javax.ws.rs.core.MultivaluedMap;\r\n...\r\n\r\nMultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();\r\nheaders.putSingle(\"Authorization\", \"Bearer \" + accessToken);\r\n\r\nWebTarget target = client.target(\"https:\/\/api.example.com\").path(\"\/accounts\");\r\nString jsonString = target.request().headers(headers).get(String.class);\r\n<\/pre>\n<p>\u307e\u305a\u3001HTTP\u30d8\u30c3\u30c0\u30fc\u3067\u9001\u4fe1\u3057\u305f\u3044\u60c5\u5831\u3092\u683c\u7d0d\u3057\u305fMultivaluedHashMap\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002WebTarget\u306erequest \u30e1\u30bd\u30c3\u30c9\u3067\u4f5c\u6210\u3057\u305fInvocation.Builder \u306eheaders \u30e1\u30bd\u30c3\u30c9\u3067\u4f5c\u6210\u3057\u305fMultivaluedHashMap\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u30d8\u30c3\u30c0\u30fc\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a name=\"json\"><\/p>\n<h2>JSON \u306e\u30d1\u30fc\u30b9<\/h2>\n<p><\/a><\/p>\n<p>\u6700\u5f8c\u306b\u3046\u3051\u3068\u3063\u305fJSON\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30d1\u30fc\u30b9\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30b7\u30ca\u30b8\u30fc\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u3067\u306f\u3001Jackson ( <a href=\"https:\/\/github.com\/FasterXML\/jackson\" target=\"_blank\">https:\/\/github.com\/FasterXML\/jackson<\/a> )\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306eJSON\u6587\u5b57\u5217\u3092\u30d1\u30fc\u30b9\u3057\u3001Map<String,Object>\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\nimport com.fasterxml.jackson.databind.ObjectMapper;\r\nimport com.fasterxml.jackson.core.type.TypeReference;\r\n...\r\n\r\nString result = client.target(\"https:\/\/api.example.com\")\r\n    .path(\"\/path_to_post_method\")\r\n    .request()\r\n    .post(entity, String.class);\r\n\r\nObjectMapper objectMapper = new ObjectMapper();\r\nMap<String,Object> map = objectMapper.readValue(result,  new TypeReference<Map<String, Object>>() {});\r\n<\/pre>\n<p>JSON \u3092\u30d1\u30fc\u30b9\u3059\u308b\u306b\u306fObjectMappaer\u3092\u5229\u7528\u3057\u307e\u3059\u3002ObjectMapper \u306ereadValue \u30e1\u30bd\u30c3\u30c9\u3067\u3001\b\u7b2c2\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u30af\u30e9\u30b9\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Map<String,Object> \u306a\u3069\u306e\u3088\u3046\u306b\u578b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u542b\u3080\u30af\u30e9\u30b9\u306f\u305d\u306e\u307e\u307e\u6307\u5b9a\u3057\u3066\u3082\u3046\u307e\u304fMapping \u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4f8b\u306e\u3088\u3046\u306bTypeReference\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\r\n\/\/\u3053\u308c\u306f\u3001\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u3002\r\nMap<String,Object> map = objectMapper.readValue(result,  Map.class);\r\n<\/pre>\n<h2> \u6700\u5f8c\u306b<\/h2>\n<p>Java \u306fRuby \u306a\u3069\u3068\u6bd4\u8f03\u3057\u3066\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u6a5f\u80fd\u304c\u5c11\u306a\u3044\u305f\u3081\u3001\u300c\u3053\u308c\u304c\u3057\u305f\u3044\u300d\u3068\u306a\u3063\u305f\u3068\u304d\u306b\u4f55\u3092\u5229\u7528\u3059\u308b\u306e\u304c\u3088\u3044\u304b\u60a9\u3080\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002\u6b74\u53f2\u304c\u3042\u308b\u3060\u3051\u306b\u691c\u7d22\u3059\u308b\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u8907\u6570\u307f\u3064\u304b\u3063\u305f\u308a\u3001\u3068\u3066\u3082\u53e4\u3044\u60c5\u5831\u304c\u4e0a\u4f4d\u306b\u30e9\u30f3\u30ad\u30f3\u30b0\u3055\u308c\u305f\u308a\u3002\u305f\u3060\u3001\u73fe\u6642\u70b9\u3067\u306fJava\u3067Web API \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u958b\u767a\u3059\u308b\u306a\u3089\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u6d41\u308c\u308b\u3088\u3046\u306aJAX-RS \u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u305fJersey\u304c\u6700\u9069\u3060\u3001\u3068\u79c1\u306f\u4fe1\u3058\u3066\u3044\u307e\u3059\u3002\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79c1\u305f\u3061\u306f\u30b7\u30b9\u30c6\u30e0\u3092\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u30fb\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306b\u5206\u5272\u3059\u308b\u65b9\u91dd\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u9593\u306e\u901a\u4fe1\u3001Web API \u3092\u547c\u3073\u51fa\u3059\u51e6\u7406\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u3042\u308a\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2016\/09\/20\/jersey-client-api\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[57],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/11706"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=11706"}],"version-history":[{"count":50,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/11706\/revisions"}],"predecessor-version":[{"id":11771,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/11706\/revisions\/11771"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=11706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=11706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=11706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}