public class HttpServletRequestHolder extends Object
HttpServletRequest to a thread local. Please take special care to ALWAYS remove
the request from the thread local by calling release().| Constructor and Description |
|---|
HttpServletRequestHolder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(HttpServletRequest request)
Associate the request with the current thread.
|
static HttpServletRequest |
get() |
static void |
release()
Remove the request that is currently associated with the current thread.
|
public static void bind(HttpServletRequest request)
public static void release()
public static HttpServletRequest get()
Copyright © 2017. All Rights Reserved.