Class SSIServletRequestUtil

java.lang.Object
org.apache.catalina.ssi.SSIServletRequestUtil

public class SSIServletRequestUtil extends Object
Utility methods for SSI servlet request handling.
  • Method Details

    • getRelativePath

      public static String getRelativePath(HttpServletRequest request)
      Return the relative path associated with this request. If the request was dispatched via RequestDispatcher.include(ServletRequest, ServletResponse), the path is taken from the include attributes. Otherwise it is taken from the path info, falling back to the servlet path. A null or empty path results in /.
      Parameters:
      request - The servlet request we are processing
      Returns:
      the relative path