Package org.apache.webbeans.web.util
Class ServletCompatibilityUtil
- java.lang.Object
-
- org.apache.webbeans.web.util.ServletCompatibilityUtil
-
public final class ServletCompatibilityUtil extends Object
This utility helps to be compatible with Servlet API 2.4
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetServletInfo(jakarta.servlet.ServletContext servletContext)Returns an information about the given servlet context.
-
-
-
Method Detail
-
getServletInfo
public static String getServletInfo(jakarta.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"
-
-