fr.paris.lutece.portal.web
Class LocalVariables

java.lang.Object
  extended by fr.paris.lutece.portal.web.LocalVariables

public final class LocalVariables
extends java.lang.Object

Tools class to transmit config, request and response servlet parameters using ThreadLocal.


Method Summary
static javax.servlet.ServletConfig getConfig()
          Read ServletConfig associate to the current thread
static javax.servlet.http.HttpServletRequest getRequest()
          Read HttpServletRequest associate to the current thread
static javax.servlet.http.HttpServletResponse getResponse()
          Read HttpServletResponse associate to the current thread
static void setLocal(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initialize thread locals variables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setLocal

public static void setLocal(javax.servlet.ServletConfig config,
                            javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
Initialize thread locals variables

Parameters:
config - Current ServletConfig to associate to the thread
request - Current HttpServletRequest to associate to the thread
response - Current HttpServletResponse to associate to the thread

getConfig

public static javax.servlet.ServletConfig getConfig()
Read ServletConfig associate to the current thread

Returns:
the ServletConfig associate to the current thread

getRequest

public static javax.servlet.http.HttpServletRequest getRequest()
Read HttpServletRequest associate to the current thread

Returns:
the HttpServletRequest associate to the current thread

getResponse

public static javax.servlet.http.HttpServletResponse getResponse()
Read HttpServletResponse associate to the current thread

Returns:
the HttpServletResponse associate to the current thread


Copyright © 2012 Mairie de Paris. All Rights Reserved.