public static String getRequestUri(String path) {
List pathInfo = StringUtil.split(path, "/");
if (pathInfo == null || pathInfo.size() == 0) {
Debug.logWarning("Got nothing when splitting URI: " + path, module);
return null;
}
if (((String)pathInfo.get(0)).indexOf('?') > -1) {
return ((String) pathInfo.get(0)).substring(0, ((String)pathInfo.get(0)).indexOf('?'));
} else {
return (String) pathInfo.get(0);
}
}
request.getPathInfo()
最新推荐文章于 2021-03-19 22:59:57 发布