Class ServletContextThreadLocalizer


  • public class ServletContextThreadLocalizer
    extends Object
    This class provides access to the ServletContext using ThreadLocal class It is required by WSRP caching implementaion.
    • Method Detail

      • get

        public static javax.servlet.ServletContext get()
        Returns ServletContext
        Returns:
      • set

        public static void set​(javax.servlet.ServletContext sc)
        Sets ServletContext in the ThreadLocal variable
        Parameters:
        sc - ServletContextContext
      • exists

        public static boolean exists()
        Checks whether ServletContext is set in the ThreadLocal variable