{"id":1048,"date":"2018-04-15T17:51:04","date_gmt":"2018-04-15T08:51:04","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=1048"},"modified":"2023-05-27T20:45:17","modified_gmt":"2023-05-27T11:45:17","slug":"%e3%80%90%e3%82%b5%e3%83%bc%e3%83%96%e3%83%ac%e3%83%83%e3%83%88%e3%80%91%e7%94%bb%e9%9d%a2%e9%81%b7%e7%a7%bb%e3%81%9d%e3%81%ae2%ef%bc%88%e3%83%aa%e3%83%80%e3%82%a4%e3%83%ac%e3%82%af%e3%83%88%e3%81%ab","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=1048","title":{"rendered":"\u3010\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3011\u753b\u9762\u9077\u79fb\u305d\u306e2\uff08\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u3064\u3044\u3066\uff09"},"content":{"rendered":"<p>\u753b\u9762\u9077\u79fb\u306e\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3055\u305b\u3066\u9802\u3044\u305f\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1(\u30d5\u30a9\u30ef\u30fc\u30c9\u7b49)\u306e\u4ed6\u306b\u3001\u300c<strong>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/strong>\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"jh0L9pkQYH\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=1035\">\u3010\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3011\u753b\u9762\u9077\u79fb\u305d\u306e\uff11\uff08\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8ee2\u9001\uff09<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=1035&#038;embed=true#?secret=jh0L9pkQYH\" data-secret=\"jh0L9pkQYH\" width=\"500\" height=\"282\" title=\"&#8220;\u3010\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3011\u753b\u9762\u9077\u79fb\u305d\u306e\uff11\uff08\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8ee2\u9001\uff09&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h2>\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1(\u30d5\u30a9\u30ef\u30fc\u30c9)\u3068\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u9055\u3044<\/h2>\n<p>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3001\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3068\u9055\u3063\u3066\u3001<strong>\u4e00\u5ea6\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u300c\u3053\u3053\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u300d\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u304b\u3089\u5225\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3078\u306e\u8ee2\u9001\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u69cb\u6587<\/h2>\n<p>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u69cb\u6587\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306bsendRedirect\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\r\nresponse.sendRedirect(&quot;\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5bfe\u8c61\u306eURL&quot;)\r\n\r\n<\/pre>\n<p>\u3082\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3082\u66f8\u3051\u307e\u3059\u3002\uff08\u305f\u3060\u3001\u5197\u9577\u306a\u306e\u3067\u7c21\u5358\u306b\u66f8\u3051\u308b\u4e0a\u8a18\u306e\u66f8\u304d\u65b9\u3092\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3057\u3087\u3046\u3002\uff09<\/p>\n<pre class=\"lang:default decode:true\">response.setStatus(302);\r\nresponse.setHeader(\"Location\", \"\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u306eURL\");<\/pre>\n<h2>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p>\u30d5\u30a9\u30ef\u30fc\u30c9\u3068\u9055\u3063\u3066\u3001<span style=\"color: #ff0000;\"><strong>\u5225\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3082\u8ee2\u9001\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/strong><\/span>\u70b9\u3002<\/p>\n<p>URL\u304c\u8ee2\u9001\u5148\u306eURL\u306b\u306a\u308b\u70b9\u3002<\/p>\n<h2>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n<ul>\n<li>\u4e00\u5ea6\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u51e6\u7406\u3092\u8fd4\u3059\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>\u30ea\u30af\u30a8\u30b9\u30c8\uff5e\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u56de\u6570\u304c\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\uff08\u30d5\u30a9\u30ef\u30fc\u30c9\uff09\u306b\u6bd4\u3079\u308b\u3068\u3001\u5897\u3048\u3066\u3057\u307e\u3046\u3002\uff08\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u60aa\u3044\u3067\u3059\u3002\uff09<\/strong><\/span><\/li>\n<li>\u30ea\u30af\u30a8\u30b9\u30c8\u30b9\u30b3\u30fc\u30d7\u306e\u5024\u3092\u3001\u6b21\u306e\u30da\u30fc\u30b8\u306b\u6e21\u3059\u3053\u3068\u3082\u3067\u304d\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u5358\u7d14\u306b2\u500d\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u767a\u751f\u3059\u308b\u3060\u3051\u3067\u306a\u304fWeb\u30b5\u30fc\u30d0\u30fc\u306e\u30ad\u30e5\u30fc\u306b\u84c4\u7a4d\u3055\u308c\u3066\u3001\u8981\u6c42\u5f85\u3061\u306e\u9045\u5ef6\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\uff08\u305d\u308c\u306b\u5bfe\u3057\u3066\u30d5\u30a9\u30ef\u30fc\u30c9\u306f1\u3064\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u540c\u671f\u7684\u306b\u51e6\u7406\u3059\u308b\u306e\u3067\u8981\u6c42\u5f85\u3061\u3084\u9045\u5ef6\u306e\u5fc3\u914d\u306f\u5168\u304f\u3042\u308a\u307e\u305b\u3093\u3002\uff09<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u305f\u3081\u3001<span style=\"color: #ff0000;\"><strong>\u3042\u307e\u308a\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306e\u753b\u9762\u9077\u79fb\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u3046\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<h2>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u7528\u9014<\/h2>\n<p>\u5358\u7d14\u306b\u3001<strong>\u5916\u90e8\u306b\u8ee2\u9001\u3059\u308b\u969b\u306b\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u3046\u3002<\/strong>\u5177\u4f53\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7528\u9014\u3067\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u79fb\u8ee2\u3055\u305b\u305f\u3068\u304d\u306b\u4e00\u6642\u7684\u306b\u4f7f\u3063\u305f\u308a\u3059\u308b\u3002<\/li>\n<li>\u5358\u7d14\u306b\u5225\u306e\u30b5\u30a4\u30c8\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001URL\u304c\u8ee2\u9001\u5148\u306eURL\u306b\u5909\u66f4\u3055\u308c\u308b\u306e\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u3067\u3082<\/strong><\/span>\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3082\u4f7f\u3046\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5225\u753b\u9762\u306bGET\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u306e\u3067\u3001\u5229\u7528\u8005\u306bURL\u3092\u96a0\u853d\u3057\u305f\u3044\u5834\u5408<\/li>\n<li>\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306e\u5225\u6a5f\u80fd\u306e\u753b\u9762\u306b\u8ee2\u9001\u3057\u305f\u3044\u5834\u5408<\/li>\n<\/ul>\n<p>\u7279\u306b\u3001\u6a5f\u80fd\u540d\u3068\u3001URL\u304c\u7570\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e0d\u5177\u5408\u306e\u539f\u56e0\u306b\u3082\u306a\u308b\u306e\u3067\u3001\u305d\u3046\u3057\u305f\u5834\u5408\u306f<span style=\"color: #ff0000;\"><strong>\u540c\u3058Web\u30a2\u30d7\u30ea\u5185\u3067\u3082\u3001\u300c\u30d5\u30a9\u30ef\u30fc\u30c9\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u300d\u3092\u4f7f\u7528\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"\u753b\u9762\u9077\u79fb\u306e\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3055\u305b\u3066\u9802\u3044\u305f\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1(\u30d5\u30a9\u30ef\u30fc\u30c9\u7b49)\u306e\u4ed6\u306b\u3001\u300c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u300d\u304c\u3042\u308a\u307e\u3059\u3002 \u3010\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3011\u753b\u9762\u9077\u79fb\u305d\u306e\uff11\uff08\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\uff1a\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u8ee2\u9001\uff09 \u30c7\u30a3\u30b9\u30d1\u30c3\u30c1(\u30d5\u30a9\u30ef\u30fc\u30c9)\u3068\u3001\u30ea\u30c0 [&hellip;]","protected":false},"author":1,"featured_media":1091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1048"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1048"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1048\/revisions"}],"predecessor-version":[{"id":20257,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1048\/revisions\/20257"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/1091"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1048"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}