com.fruitioninc.jwc
Class ThreadLocalStorage

java.lang.Object
  |
  +--com.fruitioninc.jwc.ThreadLocalStorage

public class ThreadLocalStorage
extends java.lang.Object

Manages thread local storage.


Constructor Summary
ThreadLocalStorage()
           
 
Method Summary
static java.lang.Object getProperty(Component component, java.lang.String name)
          Returns the value of a request property.
static javax.servlet.http.HttpServletRequest getRequest()
          Returns the HTTP request object for the current thread.
static javax.servlet.http.HttpServletResponse getResponse()
          Returns the HTTP response object for the current thread.
static javax.servlet.ServletConfig getServletConfig()
          Returns the servlet configuration object for the current thread.
static java.lang.Object getSessionProperty(Component component, java.lang.String name)
          Returns the value of a session property.
static void setProperty(Component component, java.lang.String name, java.lang.Object value)
          Sets the value of a request property.
static void setSessionProperty(Component component, java.lang.String name, java.lang.Object value)
          Sets the value of a session property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalStorage

public ThreadLocalStorage()
Method Detail

getProperty

public static java.lang.Object getProperty(Component component,
                                           java.lang.String name)
Returns the value of a request property.


setProperty

public static void setProperty(Component component,
                               java.lang.String name,
                               java.lang.Object value)
Sets the value of a request property.


getSessionProperty

public static java.lang.Object getSessionProperty(Component component,
                                                  java.lang.String name)
Returns the value of a session property.


setSessionProperty

public static void setSessionProperty(Component component,
                                      java.lang.String name,
                                      java.lang.Object value)
Sets the value of a session property.


getRequest

public static javax.servlet.http.HttpServletRequest getRequest()
Returns the HTTP request object for the current thread.


getResponse

public static javax.servlet.http.HttpServletResponse getResponse()
Returns the HTTP response object for the current thread.


getServletConfig

public static javax.servlet.ServletConfig getServletConfig()
Returns the servlet configuration object for the current thread.