Class ServletContextThreadLocalizer
- java.lang.Object
-
- com.sun.portal.portletcontainer.context.ServletContextThreadLocalizer
-
public class ServletContextThreadLocalizer extends Object
This class provides access to the ServletContext using ThreadLocal class It is required by WSRP caching implementaion.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
exists()
Checks whether ServletContext is set in the ThreadLocal variablestatic javax.servlet.ServletContext
get()
Returns ServletContextstatic void
set(javax.servlet.ServletContext sc)
Sets ServletContext in the ThreadLocal variable
-
-
-
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
-
-