|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.context.request.RequestContextHolder
public abstract class RequestContextHolder
Helper class to manage a thread-bound HttpServletRequest.
RequestContextListener,
RequestContextFilter| Constructor Summary | |
|---|---|
RequestContextHolder()
|
|
| Method Summary | |
|---|---|
static RequestAttributes |
currentRequestAttributes()
Return the RequestAttributes currently bound to the thread. |
static RequestAttributes |
getRequestAttributes()
Return the RequestAttributes currently bound to the thread. |
static void |
setRequestAttributes(RequestAttributes accessor)
Bind the given RequestAttributes to the current thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestContextHolder()
| Method Detail |
|---|
public static void setRequestAttributes(RequestAttributes accessor)
accessor - the RequestAttributes to exposepublic static RequestAttributes getRequestAttributes()
null
public static RequestAttributes currentRequestAttributes()
throws IllegalStateException
IllegalStateException - if no RequestAttributes is bound
to the current thread
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||