{"id":661,"date":"2023-11-03T04:32:06","date_gmt":"2023-03-30T07:49:57","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"},"modified":"2025-08-01T01:27:40","modified_gmt":"2025-07-31T16:27:40","slug":"%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","title":{"rendered":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"},"content":{"rendered":"<p>\u300cJava Jersey\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u6700\u8fd1\u3001JAX-RS Jersey\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u305fRestful\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u7d44\u307f\u59cb\u3081\u307e\u3057\u305f\u3002\u300d<\/p>\n<h2>Java Jersey \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h2>\n<p>Java Jersey\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3001Java\u3067Restful\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308bJAX-RS API\u3092\u8ffd\u8de1\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5229\u7528\u3059\u308b\u3079\u304d\u4eba\u306f\u8ab0\u3067\u3059\u304b\uff1f<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u3001JAX-RS API\u3068JAXB\u3092\u4f7f\u7528\u3057\u3066Restful Web\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u767a\u304a\u3088\u3073\u5c55\u958b\u3057\u305f\u3044Java\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3092\u5bfe\u8c61\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>2. \u5fc5\u8981\u6761\u4ef6 (Hitsuy\u014d j\u014dken)<\/h3>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7bc4\u56f2\u306f\u3001Jersey API\u3092\u4f7f\u7528\u3057\u3066Restful\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u3001Java\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u3059\u3002Java\u3001Web\u30b5\u30fc\u30d3\u30b9\u3001XML\u3001Maven\u3001\u304a\u3088\u3073\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\uff08JBoss\/Tomcat\uff09\u306b\u95a2\u3059\u308b\u57fa\u672c\u7684\u306a\u7406\u89e3\u304c\u3042\u308c\u3070\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5bb9\u6613\u306b\u7406\u89e3\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3. \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3068\u30c4\u30fc\u30eb<\/h3>\n<ul class=\"post-ul\">\n<li>JDK version 1.8.0_131<\/li>\n<li>Apache Maven 3.5.3<\/li>\n<li>Mac OS X 10.13.4<\/li>\n<li>Tomcat 8.5.16<\/li>\n<li>Eclipse Java EE IDE Oxygen 4.7.3<\/li>\n<\/ul>\n<h2>\u30b8\u30e3\u30fc\u30b8\u306eEclipse Maven \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649582daa94e2bdf7bf700\/10-0.png\" alt=\"jersey java tutorial eclipse project\" \/><\/div>\n<h2>Java Jersey\u306eRESTful Web\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8aac\u660e<\/h2>\n<p>1. pom.xml: \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u8a73\u7d30\u3067\u3059\u3002jersey\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u4ed6\u306e\u8a73\u7d30\u306f\u540c\u69d8\u306emaven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5171\u901a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;project xmlns=\"https:\/\/maven.apache.org\/POM\/4.0.0\"\r\n\txmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;\r\n\t&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n\t&lt;groupId&gt;com.scdev.jersey&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;my-jersey-project&lt;\/artifactId&gt;\r\n\t&lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n\t&lt;packaging&gt;war&lt;\/packaging&gt;\r\n\r\n\t&lt;dependencies&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;com.sun.jersey&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jersey-server&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.14&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;com.sun.jersey&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jersey-servlet&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.14&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;com.sun.jersey&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;jersey-client&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;1.14&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t&lt;\/dependencies&gt;\r\n\r\n\t&lt;build&gt;\r\n\t\t&lt;finalName&gt;My-Jersey-Project&lt;\/finalName&gt;\r\n\t\t&lt;plugins&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;3.7.0&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;source&gt;1.8&lt;\/source&gt;\r\n\t\t\t\t\t&lt;target&gt;1.8&lt;\/target&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-war-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;3.0.0&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;warSourceDirectory&gt;WebContent&lt;\/warSourceDirectory&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t&lt;\/plugins&gt;\r\n\t&lt;\/build&gt;\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<p>2. EmpRequest.java\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u305f\u3081\u306eJava Bean\u3067\u3059\u3002\u3053\u3053\u3067\u6ce8\u76ee\u3059\u3079\u304d\u91cd\u8981\u306a\u70b9\u306f\u3001\u30af\u30e9\u30b9\u3092XML\u8981\u7d20\u306b\u30de\u30c3\u30d7\u3059\u308b\u305f\u3081\u306e@XmlRootElement\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.model;\r\n\r\nimport javax.xml.bind.annotation.XmlRootElement;\r\n\r\n@XmlRootElement(name = \"empRequest\")\r\npublic class EmpRequest {\r\n\tprivate int id;\r\n\tprivate String name;\r\n\r\n\tpublic int getId() {\r\n\t\treturn id;\r\n\t}\r\n\r\n\tpublic void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>3. EmpResponse.java: \u30ec\u30b9\u30dd\u30f3\u30b9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u305f\u3081\u306eJava\u30d3\u30fc\u30f3\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.model;\r\n\r\nimport javax.xml.bind.annotation.XmlRootElement;\r\n\r\n@XmlRootElement(name = \"empResponse\")\r\npublic class EmpResponse {\r\n\tprivate int id;\r\n\tprivate String name;\r\n\r\n\tpublic int getId() {\r\n\t\treturn id;\r\n\t}\r\n\r\n\tpublic void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}\r\n\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>4. ErrorResponse.java\uff1a\u4f8b\u5916\u767a\u751f\u6642\u306e\u5fdc\u7b54\u3068\u3057\u3066\u9001\u4fe1\u3055\u308c\u308bJava Bean\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.model;\r\n\r\nimport javax.xml.bind.annotation.XmlRootElement;\r\n\r\n@XmlRootElement(name = \"errorResponse\")\r\npublic class ErrorResponse {\r\n\r\n\tprivate String errorCode;\r\n\tprivate int errorId;\r\n\r\n\tpublic String getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}\r\n\r\n\tpublic void setErrorCode(String errorCode) {\r\n\t\tthis.errorCode = errorCode;\r\n\t}\r\n\r\n\tpublic int getErrorId() {\r\n\t\treturn errorId;\r\n\t}\r\n\r\n\tpublic void setErrorId(int errorId) {\r\n\t\tthis.errorId = errorId;\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>5. EmpNotFoundException.java: \u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3067\u30b9\u30ed\u30fc\u3055\u308c\u308b\u901a\u5e38\u306e\u4f8b\u5916\u30af\u30e9\u30b9\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.exception;\r\n\r\npublic class EmpNotFoundException extends Exception {\r\n\r\n\tprivate static final long serialVersionUID = 4351720088030656859L;\r\n\tprivate int errorId;\r\n\r\n\tpublic int getErrorId() {\r\n\t\treturn errorId;\r\n\t}\r\n\r\n\tpublic EmpNotFoundException(String msg, int errorId) {\r\n\t\tsuper(msg);\r\n\t\tthis.errorId = errorId;\r\n\t}\r\n\r\n\tpublic EmpNotFoundException(String msg, Throwable cause) {\r\n\t\tsuper(msg, cause);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>6. web.xml: \u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306e\u5c55\u958b\u8a18\u8ff0\u5b50\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001URI\u304chttps:\/\/:\/My-Jersey-Project\/rest\/*\u3067\u3042\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001Jersey ServletContainer\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u306b\u3088\u3063\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002init-param\u306e\u5024\u306f\u3001Jersey\u304c\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u30af\u30e9\u30b9\u3092\u63a2\u3059\u305f\u3081\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30af\u30e9\u30b9\u304c\u3042\u308b\u5834\u6240\u3092\u6307\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30b5\u30d6\u30d1\u30c3\u30b1\u30fc\u30b8\u5185\u306e\u30ea\u30bd\u30fc\u30b9\u30af\u30e9\u30b9\u3082\u63a2\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;web-app xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txmlns=\"https:\/\/java.sun.com\/xml\/ns\/javaee\"\r\n\txsi:schemaLocation=\"https:\/\/java.sun.com\/xml\/ns\/javaee https:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd\"\r\n\tid=\"WebApp_ID\" version=\"3.0\"&gt;\r\n\t&lt;display-name&gt;My Jersey Project&lt;\/display-name&gt;\r\n\r\n\t&lt;!-- Jersey Servlet configurations --&gt;\r\n\t&lt;servlet&gt;\r\n\t\t&lt;servlet-name&gt;Jersey REST Service&lt;\/servlet-name&gt;\r\n\t\t&lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;\/servlet-class&gt;\r\n\t\t&lt;init-param&gt;\r\n\t\t\t&lt;param-name&gt;com.sun.jersey.config.property.packages&lt;\/param-name&gt;\r\n\t\t\t&lt;param-value&gt;com.scdev&lt;\/param-value&gt;\r\n\t\t&lt;\/init-param&gt;\r\n\t\t&lt;load-on-startup&gt;1&lt;\/load-on-startup&gt;\r\n\t&lt;\/servlet&gt;\r\n\t&lt;servlet-mapping&gt;\r\n\t\t&lt;servlet-name&gt;Jersey REST Service&lt;\/servlet-name&gt;\r\n\t\t&lt;url-pattern&gt;\/rest\/*&lt;\/url-pattern&gt;\r\n\t&lt;\/servlet-mapping&gt;\r\n\t&lt;!-- Jersey Servlet configurations --&gt;\r\n\r\n&lt;\/web-app&gt;\r\n<\/code><\/pre>\n<p>\uff17\uff0eEmpRouter.java: \u7570\u306a\u308b\u7a2e\u985e\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u30af\u30e9\u30b9\u3002<\/p>\n<ul class=\"post-ul\">\n<li>@Path(\u201c\/emp\u201d) &#8211; All the requests with URI https:\/\/:\/My-Jersey-Project\/rest\/emp\/ will be processed by this resource class.<\/li>\n<li>@Path(\u201c\/getEmp\u201d) &#8211; All the requests with URI https:\/\/:\/My-Jersey-Project\/rest\/emp\/getEmp will be processed by this method.<\/li>\n<li>@POST &#8211; This annotation defines that the HTTP method used should be POST. Some other possible values are @GET, @PUT, @DELETE<\/li>\n<li>@Consumes(MediaType.APPLICATION_XML) &#8211; The method accepts XML element<\/li>\n<li>@Produces(MediaType.APPLICATION_XML) &#8211; The method returns XML element<\/li>\n<\/ul>\n<pre class=\"post-pre\"><code>package com.scdev.router;\r\n\r\nimport com.scdev.exception.EmpNotFoundException;\r\nimport com.scdev.model.*;\r\n\r\nimport javax.ws.rs.Consumes;\r\nimport javax.ws.rs.POST;\r\nimport javax.ws.rs.Path;\r\nimport javax.ws.rs.Produces;\r\nimport javax.ws.rs.core.MediaType;\r\nimport javax.ws.rs.core.Response;\r\nimport javax.xml.bind.JAXBElement;\r\n\r\n@Path(\"\/emp\")\r\npublic class EmpRouter {\r\n\r\n\t@POST\r\n\t@Path(\"\/getEmp\")\r\n\t@Consumes(MediaType.APPLICATION_XML)\r\n\t@Produces(MediaType.APPLICATION_XML)\r\n\tpublic Response getEmp(JAXBElement&lt;EmpRequest&gt; empRequest)\r\n\t\t\tthrows EmpNotFoundException {\r\n\t\tEmpResponse empResponse = new EmpResponse();\r\n\t\tif (empRequest.getValue().getId() == 1) {\r\n\t\t\tempResponse.setId(empRequest.getValue().getId());\r\n\t\t\tempResponse.setName(empRequest.getValue().getName());\r\n\t\t} else {\r\n\t\t\tthrow new EmpNotFoundException(\"Wrong ID\", empRequest.getValue()\r\n\t\t\t\t\t.getId());\r\n\t\t}\r\n\t\treturn Response.ok(empResponse).build();\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>8. EmpNotFoundExceptionMapper.java: EmpNotFoundException\u3092Response\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308bException Mapper\u30af\u30e9\u30b9\u3067\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306b\u306f@Provider\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u30af\u30e9\u30b9\u306fweb.xml\u3067\u30ea\u30bd\u30fc\u30b9\u30af\u30e9\u30b9\u306b\u63d0\u4f9b\u3055\u308c\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002toResponse()\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u3067\u306f\u3001INTERNAL_SERVER_ERROR\u3092\u30b9\u30c6\u30fc\u30bf\u30b9\u3068\u3057\u3066\u6301\u3064ErrorResponse\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3001Response\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067Entity\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.exceptionmapper;\r\n\r\nimport javax.ws.rs.core.MediaType;\r\nimport javax.ws.rs.core.Response;\r\nimport javax.ws.rs.ext.ExceptionMapper;\r\nimport javax.ws.rs.ext.Provider;\r\n\r\nimport com.scdev.exception.EmpNotFoundException;\r\nimport com.scdev.model.ErrorResponse;\r\n\r\n@Provider\r\npublic class EmpNotFoundExceptionMapper implements\r\n\t\tExceptionMapper&lt;EmpNotFoundException&gt; {\r\n\r\n\tpublic EmpNotFoundExceptionMapper() {\r\n\t}\r\n\t\r\n\tpublic Response toResponse(\r\n\t\t\tEmpNotFoundException empNotFoundException) {\r\n\t\tErrorResponse errorResponse = new ErrorResponse();\r\n\t\terrorResponse.setErrorId(empNotFoundException.getErrorId());\r\n\t\terrorResponse.setErrorCode(empNotFoundException.getMessage());\r\n\t\treturn Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(\r\n\t\t\t\terrorResponse).type(\r\n\t\t\t\tMediaType.APPLICATION_XML).build();\r\n\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<p>\u79c1\u305f\u3061\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306f\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u306e\u3067\u3001WAR\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u5c55\u958b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b8\u30e3\u30fc\u30b8\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f8b<\/h2>\n<p>\u79c1\u305f\u3061\u306fJersey Client\u3092\u4f7f\u7528\u3057\u3066\u3001Web\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u5fdc\u7b54\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002EmpClient.java\uff1a\u3053\u308c\u306f\u79c1\u305f\u3061\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u306eJava\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002\u79c1\u305f\u3061\u306fJersey Client API\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3092\u547c\u3073\u51fa\u3057\u3001\u5fdc\u7b54\u306e\u72b6\u614b\u306b\u57fa\u3065\u3044\u3066\u5fdc\u7b54\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092EmpResponse\u307e\u305f\u306fErrorResponse\u30af\u30e9\u30b9\u306b\u89e3\u6790\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.client;\r\n\r\nimport javax.ws.rs.core.MediaType;\r\n\r\nimport com.scdev.model.EmpRequest;\r\nimport com.scdev.model.EmpResponse;\r\nimport com.scdev.model.ErrorResponse;\r\nimport com.sun.jersey.api.client.Client;\r\nimport com.sun.jersey.api.client.ClientResponse;\r\nimport com.sun.jersey.api.client.WebResource;\r\n\r\npublic class EmpClient {\r\n\r\n\t\/**\r\n\t * @param args\r\n\t *\/\r\n\tpublic static void main(String[] args) {\r\n\t\tString uri = \"https:\/\/localhost:8080\/My-Jersey-Project\/rest\/emp\/getEmp\";\r\n\t\tEmpRequest request = new EmpRequest();\r\n\t\t\/\/ set id as 1 for OK response\r\n\t\trequest.setId(2);\r\n\t\trequest.setName(\"PK\");\r\n\t\ttry {\r\n\t\t\tClient client = Client.create();\r\n\t\t\tWebResource r = client.resource(uri);\r\n\t\t\tClientResponse response = r.type(MediaType.APPLICATION_XML).post(ClientResponse.class, request);\r\n\t\t\tSystem.out.println(response.getStatus());\r\n\t\t\tif (response.getStatus() == 200) {\r\n\t\t\t\tEmpResponse empResponse = response.getEntity(EmpResponse.class);\r\n\t\t\t\tSystem.out.println(empResponse.getId() + \"::\" + empResponse.getName());\r\n\t\t\t} else {\r\n\t\t\t\tErrorResponse exc = response.getEntity(ErrorResponse.class);\r\n\t\t\t\tSystem.out.println(exc.getErrorCode());\r\n\t\t\t\tSystem.out.println(exc.getErrorId());\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}\r\n\r\n}\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649582daa94e2bdf7bf700\/33-1.png\" alt=\"Jersey Client Exception Example\" \/><\/div>\n<h2>\u8981\u7d04<\/h2>\n<p>\u3053\u306e\u6295\u7a3f\u3067\u306f\u3001Jersey API\u3092\u4f7f\u7528\u3057\u3066REST\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u307e\u305f\u3001Jersey Client\u3092\u4f7f\u7528\u3057\u3066Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u901a\u3058\u3066REST API\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u3082\u898b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u5f0a\u793e\u306eGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30b3\u30fc\u30c9\u5168\u4f53\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300cJava Jersey\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3078\u3088\u3046\u3053\u305d\u3002\u6700\u8fd1\u3001JAX-RS Jersey\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u305fRestful\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u7d44\u307f\u59cb\u3081\u307e\u3057\u305f\u3002\u300d Java Jersey \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306f\u4f55\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-661","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\" \/>\n<meta property=\"og:description\" content=\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-30T07:49:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T16:27:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649582daa94e2bdf7bf700\/10-0.png\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"23\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\",\"name\":\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-03-30T07:49:57+00:00\",\"dateModified\":\"2025-07-31T16:27:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","description":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb","og_description":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-30T07:49:57+00:00","article_modified_time":"2025-07-31T16:27:40+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65649582daa94e2bdf7bf700\/10-0.png"}],"author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"23\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/","name":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-03-30T07:49:57+00:00","dateModified":"2025-07-31T16:27:40+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30b8\u30e3\u30fc\u30b8\u30fb\u30b8\u30e3\u30ef\u30fb\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%b8%e3%83%a3%e3%83%bc%e3%82%b8%e3%83%bb%e3%82%b8%e3%83%a3%e3%83%af%e3%83%bb%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=661"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/661\/revisions"}],"predecessor-version":[{"id":43420,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/661\/revisions\/43420"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}