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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThere is no conversation id concept for a request, so this method returnsnull.protected intgetScope()Template method that determines the actual target scope.Methods inherited from class org.springframework.web.context.request.AbstractRequestAttributesScopeget, registerDestructionCallback, remove, resolveContextualObject
- 
Constructor Details- 
RequestScopepublic RequestScope()
 
- 
- 
Method Details- 
getScopeprotected int getScope()Description copied from class:AbstractRequestAttributesScopeTemplate method that determines the actual target scope.- Specified by:
- getScopein class- AbstractRequestAttributesScope
- Returns:
- the target scope, in the form of an appropriate
 RequestAttributesconstant
- See Also:
 
- 
getConversationIdThere is no conversation id concept for a request, so this method returnsnull.- Returns:
- the conversation ID, or nullif there is no conversation ID for the current scope
 
 
-