Class ContextParamUtils


  • public class ContextParamUtils
    extends Object
    A utility class for dealing with context-param entries.
    • Method Detail

      • getValue

        public static Object getValue​(jakarta.servlet.ServletContext servletContext,
                                      ContextParam contextParam)
        Get the value.
        Parameters:
        servletContext - the servlet context.
        contextParam - the context-param.
        Returns:
        the value.
      • getValue

        public static <T> T getValue​(jakarta.servlet.ServletContext servletContext,
                                     ContextParam contextParam,
                                     Class<T> clazz)
        Get the value.
        Type Parameters:
        T - the type.
        Parameters:
        servletContext - the servlet context.
        contextParam - the context-param.
        clazz - the class.
        Returns:
        the value.