(URL url)
| 110 | } |
| 111 | |
| 112 | public static Set<String> getUrlPathList(URL url) { |
| 113 | String path; |
| 114 | String urlRootPath = CommonUtils.getUrlRootPath(url); |
| 115 | String tmppath = path = url.getPath(); |
| 116 | HashSet<String> UrlPathList = new HashSet<String>(); |
| 117 | while (tmppath.length() != 0 || tmppath.equals("/")) { |
| 118 | tmppath = tmppath.substring(0, tmppath.lastIndexOf("/")); |
| 119 | UrlPathList.add(urlRootPath + tmppath); |
| 120 | } |
| 121 | return UrlPathList; |
| 122 | } |
| 123 | |
| 124 | public static String getCurrentDateTime() { |
| 125 | Date d = new Date(); |
no test coverage detected