Class RequestScope
java.lang.Object
org.springframework.web.context.request.AbstractRequestAttributesScope
org.springframework.web.context.request.RequestScope
- All Implemented Interfaces:
Scope
Request-backed
Scope
implementation.
Relies on a thread-bound RequestAttributes
instance, which
can be exported through RequestContextListener
,
RequestContextFilter
or
DispatcherServlet
.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller, Rob Harrop
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getScope()
Template method that determines the actual target scope.Methods inherited from class AbstractRequestAttributesScope
get, registerDestructionCallback, remove, resolveContextualObject
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Scope
getConversationId
-
Constructor Details
-
RequestScope
public RequestScope()
-
-
Method Details
-
getScope
protected int getScope()Description copied from class:AbstractRequestAttributesScope
Template method that determines the actual target scope.- Specified by:
getScope
in classAbstractRequestAttributesScope
- Returns:
- the target scope, in the form of an appropriate
RequestAttributes
constant - See Also:
-