Class ServletUtils


  • public abstract class ServletUtils
    extends Object
    Various Util methods for interaction on servlet level, i.e. HttpServletRequest
    • 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