public final class LocalVariables extends Object
ThreadLocal
.Modifier and Type | Method and Description |
---|---|
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
|
public static void setLocal(javax.servlet.ServletConfig config, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
config
- Current ServletConfig
to associate to the threadrequest
- Current HttpServletRequest
to associate to the threadresponse
- Current HttpServletResponse
to associate to the threadpublic static javax.servlet.ServletConfig getConfig()
ServletConfig
associate to the current threadServletConfig
associate to the current threadpublic static javax.servlet.http.HttpServletRequest getRequest()
HttpServletRequest
associate to the current threadHttpServletRequest
associate to the current threadpublic static javax.servlet.http.HttpServletResponse getResponse()
HttpServletResponse
associate to the current threadHttpServletResponse
associate to the current threadCopyright © 2020 City of Paris. All rights reserved.