|
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.AbstractRequestAttributesScope
org.springframework.web.context.request.RequestScope
public class RequestScope
Request-backed Scope
implementation.
Relies on a thread-bound RequestAttributes instance, which
can be exported through RequestContextListener,
RequestContextFilter or
DispatcherServlet.
This Scope will also work for Portlet environments,
through an alternate RequestAttributes implementation
(as exposed out-of-the-box by Spring's
DispatcherPortlet.
RequestContextHolder.currentRequestAttributes(),
RequestAttributes.SCOPE_REQUEST,
RequestContextListener,
RequestContextFilter,
DispatcherServlet,
DispatcherPortlet| Constructor Summary | |
|---|---|
RequestScope()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getConversationId()
There is no conversation id concept for a request, so this method returns null. |
protected int |
getScope()
Template method that determines the actual target scope. |
| Methods inherited from class org.springframework.web.context.request.AbstractRequestAttributesScope |
|---|
get, registerDestructionCallback, remove, resolveContextualObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestScope()
| Method Detail |
|---|
protected int getScope()
AbstractRequestAttributesScope
getScope in class AbstractRequestAttributesScopeRequestAttributes constantRequestAttributes.SCOPE_REQUEST,
RequestAttributes.SCOPE_SESSION,
RequestAttributes.SCOPE_GLOBAL_SESSIONpublic java.lang.String getConversationId()
null.
null if there is no
conversation ID for the current scope
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||