Package fr.paris.lutece.portal.web
Class LocalVariables
- java.lang.Object
-
- fr.paris.lutece.portal.web.LocalVariables
-
public final class LocalVariables extends java.lang.ObjectTools class to transmit config, request and response servlet parameters usingThreadLocal.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.servlet.ServletConfiggetConfig()ReadServletConfigassociate to the current threadstatic javax.servlet.http.HttpServletRequestgetRequest()ReadHttpServletRequestassociate to the current threadstatic javax.servlet.http.HttpServletResponsegetResponse()ReadHttpServletResponseassociate to the current threadstatic voidsetLocal(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Initialize thread locals variables
-
-
-
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- 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
-
-