public String getServicePath() { String pathInfo = getPathInfo(); return getServiceContextPath() + ((pathInfo == null) ? "" : pathInfo); }
public String getServicePath() { String pathInfo = getPathInfo(); return getServiceContextPath() + ((pathInfo == null) ? "" : pathInfo); }
public String getServicePath() { String pathInfo = getPathInfo(); return getServiceContextPath() + ((pathInfo == null) ? "" : pathInfo); }
public String getPathInfo() { // NOTE: Don't use req.getPathInfo() - it truncates the path at first semi-colon in Tomcat final String requestURI = req.getRequestURI(); final String serviceContextPath = getServiceContextPath(); String pathInfo; if (serviceContextPath.length() > requestURI.length()) { // NOTE: assume a redirect has taken place e.g. tomcat welcome-page // NOTE: this is unlikely, and we'll take the hit if the path contains a semi-colon pathInfo = req.getPathInfo(); } else { pathInfo = URLDecoder.decode(requestURI.substring(serviceContextPath.length())); } return pathInfo; }
public String getPathInfo() { // NOTE: Don't use req.getPathInfo() - it truncates the path at first semi-colon in Tomcat final String requestURI = req.getRequestURI(); final String serviceContextPath = getServiceContextPath(); String pathInfo; if (serviceContextPath.length() > requestURI.length()) { // NOTE: assume a redirect has taken place e.g. tomcat welcome-page // NOTE: this is unlikely, and we'll take the hit if the path contains a semi-colon pathInfo = req.getPathInfo(); } else { pathInfo = URLDecoder.decode(requestURI.substring(serviceContextPath.length())); } return pathInfo; }
public String getPathInfo() { // NOTE: Don't use req.getPathInfo() - it truncates the path at first semi-colon in Tomcat final String requestURI = req.getRequestURI(); final String serviceContextPath = getServiceContextPath(); String pathInfo; if (serviceContextPath.length() > requestURI.length()) { // NOTE: assume a redirect has taken place e.g. tomcat welcome-page // NOTE: this is unlikely, and we'll take the hit if the path contains a semi-colon pathInfo = req.getPathInfo(); } else { pathInfo = URLDecoder.decode(requestURI.substring(serviceContextPath.length())); } return pathInfo; }