Class ServletCompatibilityUtil


  • public final class ServletCompatibilityUtil
    extends Object
    This utility helps to be compatible with Servlet API 2.4
    • Method Detail

      • getServletInfo

        public static String getServletInfo​(javax.servlet.ServletContext servletContext)
        Returns an information about the given servlet context. In case of Servlet API 2.5 or higher the context name will be returned.
        Parameters:
        servletContext - A given servlet context or null.
        Returns:
        The info, or the string "null"