Package fr.paris.lutece.portal.web
Class LocalVariables
java.lang.Object
fr.paris.lutece.portal.web.LocalVariables
Tools class to transmit config, request and response servlet parameters using
ThreadLocal.-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.servlet.ServletConfigReadServletConfigassociate to the current threadstatic javax.servlet.http.HttpServletRequestReadHttpServletRequestassociate to the current threadstatic javax.servlet.http.HttpServletResponseReadHttpServletResponseassociate to the current threadstatic voidsetLocal(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Initialize thread locals variables
-
Method Details
-
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- CurrentServletConfigto associate to the threadrequest- CurrentHttpServletRequestto associate to the threadresponse- CurrentHttpServletResponseto associate to the thread
-
getConfig
public static javax.servlet.ServletConfig getConfig()ReadServletConfigassociate to the current thread- Returns:
- the
ServletConfigassociate to the current thread
-
getRequest
public static javax.servlet.http.HttpServletRequest getRequest()ReadHttpServletRequestassociate to the current thread- Returns:
- the
HttpServletRequestassociate to the current thread
-
getResponse
public static javax.servlet.http.HttpServletResponse getResponse()ReadHttpServletResponseassociate to the current thread- Returns:
- the
HttpServletResponseassociate to the current thread
-