Package org.apache.solr.servlet
Class ServletUtils
- java.lang.Object
-
- org.apache.solr.servlet.ServletUtils
-
public abstract class ServletUtils extends Object
Various Util methods for interaction on servlet level, i.e. HttpServletRequest
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getPathAfterContext(javax.servlet.http.HttpServletRequest request)
Use this to get the full path after context path "/solr", which is a combination of servletPath and pathInfo.
-
-
-
Method Detail
-
getPathAfterContext
public static String getPathAfterContext(javax.servlet.http.HttpServletRequest request)
Use this to get the full path after context path "/solr", which is a combination of servletPath and pathInfo.- Parameters:
request
- the HttpServletRequest object- Returns:
- String with path starting with a "/", or empty string if no path
-
-