{"id":351,"date":"2012-12-29T02:30:00","date_gmt":"2012-12-28T17:30:00","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2012\/12\/29\/windows_java\/"},"modified":"2012-12-29T02:30:00","modified_gmt":"2012-12-28T17:30:00","slug":"windows_java","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2012\/12\/29\/windows_java\/","title":{"rendered":"Windows \u30d5\u30a1\u30a4\u30eb\u5171\u6709\u3092Java\u304b\u3089\u5229\u7528\u3059\u308b"},"content":{"rendered":"<div style=\"text-align:center\"><iframe loading=\"lazy\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?t=typea09-22&#038;o=9&#038;p=13&#038;l=st1&#038;mode=books-jp&#038;search=Java&#038;fc1=000000&#038;lt1=_blank&#038;lc1=3366FF&#038;bg1=FFFFFF&#038;f=ifr\" marginwidth=\"0\" marginheight=\"0\" width=\"468\" height=\"60\" border=\"0\" frameborder=\"0\" style=\"border:none;\" scrolling=\"no\"><\/iframe><\/div>\n<p>\u30ed\u30fc\u30ab\u30ebPC\u74b0\u5883\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u6642\u70b9\u3067\u306f\u3001OS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304b\u3089\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5229\u7528\u3067\u304d\u308b\u72b6\u614b\u3067\u3042\u308c\u3070\u3001\u554f\u984c\u306a\u304f\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>java.io.File \u30af\u30e9\u30b9\u306f\u3001Windows \u306e UNC\u30d1\u30b9\u306e\u63a5\u982d\u8f9e\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u3001OS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u554f\u984c\u306a\u304f\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5229\u7528\u3067\u304d\u308b\u72b6\u614b\u3067\u3042\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u898b\u3048\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u3001\u3053\u308c\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308b\u3088\u3046\u3067\u3001Windows \u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\u3067\u306f\u3001\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u898b\u3048\u306a\u304f\u306a\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>Java \u306e\u5834\u5408\u3001\u56f0\u3063\u3066\u3082\u305f\u3044\u3066\u3044\u306e\u5834\u5408\u3001OSS\u306e\u89e3\u6c7a\u7b56\u304c\u3042\u3063\u3066\u52a9\u304b\u308b\u304c\u3001\u4f8b\u306b\u6f0f\u308c\u305a\u3001<a href=\"http:\/\/jcifs.samba.org\/\">JCIFS<\/a> \u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5b58\u5728\u3059\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<a href=\"http:\/\/e-words.jp\/w\/CIFS.html\">CIFS \u3068\u306f<\/a>\u3001Windows \u30d5\u30a1\u30a4\u30eb\u5171\u6709\u306e\u516c\u958bAPI\u306e\u3053\u3068\u3060\u305d\u3046\u3060\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u5e7e\u5206\u4f7f\u3044\u52dd\u624b\u304c\u60aa\u3044\u3002<\/p>\n<p>\u3053\u3061\u3089\u306f\u3001java.io.File \u3068 jcifs.smb.SmbFile \u3092\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30c3\u30af\u306b\u4f7f\u3044\u305f\u3044\u306e\u3060\u304c\u3002\u3002\u3002\u4f7f\u3048\u306a\u3044\u3002<\/p>\n<p>\u3060\u3063\u3066\u3001\u304a\u4e92\u3044\u5168\u7136\u95a2\u4fc2\u306a\u3044\u3093\u3060\u3082\u306e\u3002<\/p>\n<p>java.io.File \u304c\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u306a\u3044\u4ee5\u4e0a\u3001java.io.File \u3092\u7d99\u627f\u3057\u3066 SmbFile \u3092\u4f5c\u6210\u3059\u308b\u306e\u306f\u304a\u304b\u3057\u3044\u3002\u3002\u3002\uff5e\u3057\u3087\u3046\u304c\u7121\u3044\u304b\u306a\u3002java.io.File \u306f final \u30af\u30e9\u30b9\u3067\u306f\u306a\u3044\u3068\u306f\u3044\u3048\u3002<\/p>\n<p>Java SE 7 \u304b\u3089\u306f\u3001<a href=\"http:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/nio\/file\/Path.html\">java.nio.Path<\/a> \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3042\u305f\u308a\u304c\u3001\u305d\u306e\u8cac\u3092\u679c\u305f\u3059\u306e\u304b\u3057\u3089\uff1f\u52c9\u5f37\u4e0d\u8db3\u3067\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001File \u3092\u7d99\u627f\u3057\u3066\u3001SmbFIle \u3068\u30df\u30c3\u30af\u30b9\u3057\u305f\u30af\u30e9\u30b9\u3092\u3064\u304f\u3063\u305f\u308a\u3001\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u3064\u304f\u308b\u307b\u3069\u3067\u3082\u306a\u3044\u306e\u3067\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f5c\u6210\u3057\u3066\u5bfe\u51e6\u3059\u308b\u3053\u3068\u306b\u3002\u4ee5\u4e0b\u3001\u6b21\u306e\u6642\u306e\u3053\u3068\u3092\u8003\u3048\u3066\u30e1\u30e2\u3063\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"prettyprint linenums\">package info.typea.util;\r\n\r\nimport java.io.BufferedInputStream;\r\nimport java.io.File;\r\nimport java.io.FileOutputStream;\r\nimport java.io.InputStream;\r\nimport java.net.MalformedURLException;\r\n\r\nimport jcifs.smb.SmbException;\r\nimport jcifs.smb.SmbFile;\r\nimport jcifs.smb.SmbFileOutputStream;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\n\r\n\/**\r\n * \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\r\n *\r\n *\/\r\npublic class FileSystemUtils {\r\n    protected static Logger logger = LoggerFactory.getLogger(FileSystemUtils.class);\r\n    private static final int BUF_SIZE = 4096;\r\n    \r\n    private FileSystemUtils(){}\r\n    \r\n    \/**\r\n     * \u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3082\u3057\u304f\u306f CIFS(Windows\u30d5\u30a1\u30a4\u30eb\u5171\u6709\u30b5\u30fc\u30d3\u30b9) \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u8fbc\u3080\r\n     * \r\n     * @param is \u66f8\u304d\u8fbc\u307f\u5185\u5bb9\r\n     * @param file \u66f8\u304d\u8fbc\u307f\u5bfe\u8c61\u30d5\u30a1\u30a4\u30eb\r\n     * @param isCifs CIFS \u304b\u5426\u304b\r\n     * @return\r\n     *\/\r\n    public static FileSystemUtilInfo writeToFile(\r\n            InputStream is, \r\n            File file,\r\n            boolean isCifs,            \r\n            String user, \r\n            String password) {\r\n        \r\n        if (isCifs) {\r\n            return writeToCifsFile(is, file, user, password);\r\n        } else {\r\n            return writeToLocalFile(is, file);\r\n        }\r\n    }\r\n         \r\n    \/**\r\n     * java.io.File \u304b\u3089\u3001SmbFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3059\u308b\r\n     * \r\n     * @param targetFile\r\n     * @param user\r\n     * @param password\r\n     * @return\r\n     *\/\r\n    public static SmbFile createSmbFileFromFile(\r\n            File targetFile,            \r\n            String user, \r\n            String password) {\r\n        \r\n        SmbFile file = null;\r\n        try {\r\n            file = new SmbFile(\r\n                cifsUrl( \r\n                    user,\r\n                    cisfPassword(password),\r\n                    cisfPath(targetFile.getAbsolutePath())));\r\n            \r\n        } catch (MalformedURLException e) {\r\n            \/\/ TODO\r\n        }\r\n        \r\n        return file;\r\n    }\r\n     \r\n    \/**\r\n     * \u901a\u5e38\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\r\n     * \r\n     * @param is\r\n     * @param targetFile\r\n     * @return\r\n     *\/\r\n    private static FileSystemUtilInfo writeToLocalFile(InputStream is, File targetFile) {\r\n        \r\n        FileSystemUtilInfo info = new FileSystemUtilInfo();\r\n        \r\n        FileOutputStream fos = null;\r\n        try {\r\n            fos = new FileOutputStream(targetFile);\r\n            BufferedInputStream bis = new BufferedInputStream(is);\r\n            \r\n            int len = 0;\r\n            long fileSize = 0;\r\n            byte[] buffer = new byte[BUF_SIZE];\r\n            while ((len = bis.read(buffer)) &gt;= 0) { \r\n                fos.write(buffer,0, len);\r\n                fileSize += len;\r\n            }\r\n            info.setFileSize(fileSize);\r\n            \r\n            bis.close();\r\n        } catch(Exception e) {\r\n            throw new IllegalStateException(e);\r\n        } finally {\r\n            try {\r\n                fos.close();\r\n            } catch (Exception e2) {}\r\n        }\r\n        return info;\r\n    }\r\n    \r\n    \/**\r\n     * CIFS \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\r\n     * \r\n     * @param is\r\n     * @param targetFile\r\n     * @return\r\n     * @see http:\/\/jcifs.samba.org\/src\/docs\/api\/jcifs\/smb\/SmbFile.html\r\n     *\/\r\n    private static FileSystemUtilInfo writeToCifsFile(\r\n            InputStream is, \r\n            File targetFile, \r\n            String user, \r\n            String password) {\r\n                \r\n        FileSystemUtilInfo info = new FileSystemUtilInfo();\r\n        try {\r\n            makeCifsDirectories(targetFile.getParentFile(), user, password);\r\n            SmbFile file = new SmbFile(\r\n                cifsUrl( \r\n                    user,\r\n                    cisfPassword(password),\r\n                    cisfPath(targetFile.getAbsolutePath())));\r\n\r\n            if (!file.exists()) {\r\n                file.createNewFile();\r\n            }\r\n            SmbFileOutputStream fos = new SmbFileOutputStream(file);\r\n            BufferedInputStream bis = new BufferedInputStream(is);\r\n            \r\n            int len = 0;\r\n            long fileSize = 0;\r\n            byte[] buffer = new byte[BUF_SIZE];\r\n            while ((len = bis.read(buffer)) &gt;= 0) { \r\n                fos.write(buffer,0, len);\r\n                fileSize += len;\r\n            }\r\n            info.setFileSize(fileSize);\r\n            \r\n            bis.close();\r\n            \r\n        } catch (Exception e) {\r\n            \/\/ TODO\r\n        }\r\n        \r\n        return info;\r\n    }\r\n    \r\n    \/**\r\n     * CIFS \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001\u4f5c\u6210\u3059\u308b\r\n     * \r\n     * @param dir\r\n     * @param user\r\n     * @param password\r\n     * @throws MalformedURLException\r\n     * @throws SmbException\r\n     *\/\r\n    private static void makeCifsDirectories(\r\n            File dir, \r\n            String user, \r\n            String password) throws MalformedURLException, SmbException {\r\n        \r\n        SmbFile cifsDir = new SmbFile(\r\n            cifsUrl( \r\n                user,\r\n                cisfPassword(password),\r\n                cisfPath(dir.getAbsolutePath())));\r\n        \r\n        if (!cifsDir.exists()) {\r\n            cifsDir.mkdirs();\r\n        }\r\n    }\r\n    \r\n    \/**\r\n     * CIFS \u30a2\u30af\u30bb\u30b9 URL\r\n     * @param user\r\n     * @param password\r\n     * @param path\r\n     * @return\r\n     *\/\r\n    private static String cifsUrl(String user, String password, String path) {\r\n        return String.format(\"smb:\/\/%s:%s@%s\",user,password,path);\r\n    }\r\n    \/**\r\n     * '@' is URL encoded with the '%40' hexcode escape\r\n     * \r\n     * @param password\r\n     * @return\r\n     *\/\r\n    private static String cisfPassword(String password) {\r\n        return password.replaceAll(\"@\", \"%40\");\r\n    }\r\n    \r\n    \/**\r\n     * \"\\\\\" \u3067\u59cb\u307e\u308b\u3001UNC\u30d1\u30b9 \u3092 \"server\/share\/path\/to\/file.txt\" \u306e\u3088\u3046\u306a\u66f8\u5f0f\u306b\u5909\u63db\r\n     * \r\n     * @param path\r\n     * @return\r\n     *\/\r\n    private static String cisfPath(String path) {\r\n        \/\/ \\\\ \u3092\u53d6\u308a\u9664\u304f\r\n        if (path.substring(0,2).equals(\"\\\\\\\\\")) {\r\n            path = path.substring(2);\r\n        }\r\n        return path.replaceAll(\"\\\\\\\\\", \"\\\\\/\");\r\n    }\r\n\r\n    \r\n    \/**\r\n     *  \u7d50\u679c\u60c5\u5831\r\n     *\r\n     *\/\r\n    public static class FileSystemUtilInfo {\r\n        private long fileSize;\r\n\r\n        public long getFileSize() {\r\n            return fileSize;\r\n        }\r\n\r\n        public void setFileSize(long fileSize) {\r\n            this.fileSize = fileSize;\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u3093\u3067\u3001JAX-RS \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u3001java.io.File \u306f Response \u306b\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3060\u304c\u3001\uff33\uff4d\uff42\uff26\uff49\uff4c\uff45 \u306f\u5f53\u7136\u306e\u69d8\u306b\u3067\u304d\u306a\u3044\u306e\u3067\u3001MessageBodyWriter \u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u6709\u308b\u3002\u3053\u3061\u3089\u3082\u30e1\u30e2\u3002<\/p>\n<pre class=\"prettyprint linenums\">package info.typea.provider;\r\n\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\nimport java.io.OutputStream;\r\nimport java.lang.annotation.Annotation;\r\nimport java.lang.reflect.Type;\r\nimport java.security.AccessController;\r\nimport java.security.PrivilegedActionException;\r\nimport java.security.PrivilegedExceptionAction;\r\n\r\nimport javax.ws.rs.Consumes;\r\nimport javax.ws.rs.Produces;\r\nimport javax.ws.rs.WebApplicationException;\r\nimport javax.ws.rs.core.MediaType;\r\nimport javax.ws.rs.core.MultivaluedMap;\r\nimport javax.ws.rs.ext.MessageBodyWriter;\r\nimport javax.ws.rs.ext.Provider;\r\n\r\nimport jcifs.smb.SmbException;\r\nimport jcifs.smb.SmbFile;\r\nimport jcifs.smb.SmbFileInputStream;\r\n\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\n\r\n\/**\r\n * Windows \u30d5\u30a1\u30a4\u30eb\u5171\u6709 \u30b5\u30fc\u30d3\u30b9(CIFS) \u30d5\u30a1\u30a4\u30eb \u7528 JAX-RS \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\r\n * \r\n * @see org.apache.wink.common.internal.providers.entity.FileProvider\r\n *\/\r\n@Provider\r\n@Produces({ \"*\/*\" })\r\n@Consumes({ \"*\/*\" })\r\npublic class SmbFileProvider implements MessageBodyWriter&lt;SmbFile&gt; {\r\n    private static final Logger logger = LoggerFactory.getLogger(SmbFileProvider.class);\r\n\r\n    @Override\r\n    public long getSize(SmbFile t, Class&lt;?&gt; type, Type genericType, Annotation[] annotations,\r\n            MediaType mediaType) {\r\n        try {\r\n            return t.length();\r\n        } catch (SmbException e) {\r\n            return 0;\r\n        }\r\n    }\r\n\r\n    @Override\r\n    public boolean isWriteable(Class&lt;?&gt; type, Type genericType, Annotation[] annotations,\r\n            MediaType mediaType) {\r\n        return SmbFile.class.isAssignableFrom(type);\r\n    }\r\n\r\n    @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n    @Override\r\n    public void writeTo(\r\n            SmbFile t, \r\n            Class&lt;?&gt; type, \r\n            Type genericType, \r\n            Annotation[] annotations,\r\n            MediaType mediaType, \r\n            MultivaluedMap&lt;String, Object&gt; httpHeaders,\r\n            OutputStream entityStream) throws IOException, WebApplicationException {\r\n\r\n        try {\r\n            final SmbFile smbFile = t;\r\n            final OutputStream os = entityStream;\r\n            \r\n            AccessController.doPrivileged(new PrivilegedExceptionAction() {\r\n                public Object run() throws IOException {\r\n                    if ((!(smbFile.canRead())) || (smbFile.isDirectory())) {\r\n                        if (SmbFileProvider.logger.isWarnEnabled()) {\r\n                            SmbFileProvider.logger.error(String\r\n                                .format(\"cannotUseFileAsResponse %s\", smbFile.getPath()));\r\n                        }\r\n\r\n                        throw new WebApplicationException();\r\n                    }\r\n                    SmbFileInputStream fis = new SmbFileInputStream(smbFile);\r\n                    try {\r\n                        SmbFileProvider.this.pipe(fis, os);\r\n                    } finally {\r\n                        fis.close();\r\n                    }\r\n\r\n                    return null;\r\n                }\r\n            });\r\n        } catch (PrivilegedActionException e) {\r\n            if (e.getException() instanceof IOException)\r\n                throw ((IOException) e.getException());\r\n            if (e.getException() instanceof WebApplicationException)\r\n                throw ((WebApplicationException) e.getException());\r\n            throw new WebApplicationException(e.getException());\r\n        }\r\n    }\r\n\r\n    private void pipe(InputStream is, OutputStream os) throws IOException {\r\n        byte[] ba = new byte[1024];\r\n        int i = is.read(ba);\r\n        while (i != -1) {\r\n            os.write(ba, 0, i);\r\n            i = is.read(ba);\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u3001Windows\u5171\u6709\u30d5\u30a1\u30a4\u30eb\u3092\u3001JAX-RS \u7d4c\u7531\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u69d8\u306b\u306a\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30ab\u30ebPC\u74b0\u5883\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u6642\u70b9\u3067\u306f\u3001OS\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u304c\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304b\u3089\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5229\u7528\u3067\u304d\u308b\u72b6\u614b\u3067\u3042\u308c\u3070\u3001\u554f\u984c\u306a\u304f\u4ed6\u30db\u30b9\u30c8\u306e\u5171\u6709\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092Web\u30a2\u30d7\u30ea\u30b1\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[6,46],"tags":[],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-java","category-java-ee"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}