spring-framework / org.springframework.web.context.request / RequestScope

RequestScope

open class RequestScope : AbstractRequestAttributesScope

Request-backed org.springframework.beans.factory.config.Scope implementation.

Relies on a thread-bound RequestAttributes instance, which can be exported through RequestContextListener, org.springframework.web.filter.RequestContextFilter or org.springframework.web.servlet.DispatcherServlet.

Author
Rod Johnson

Author
Juergen Hoeller

Author
Rob Harrop

Since
2.0

See Also
RequestContextHolder#currentRequestAttributes()RequestAttributes#SCOPE_REQUESTRequestContextListenerorg.springframework.web.filter.RequestContextFilterorg.springframework.web.servlet.DispatcherServlet

Constructors

<init>

RequestScope()

Request-backed org.springframework.beans.factory.config.Scope implementation.

Relies on a thread-bound RequestAttributes instance, which can be exported through RequestContextListener, org.springframework.web.filter.RequestContextFilter or org.springframework.web.servlet.DispatcherServlet.

Functions

getConversationId

open fun getConversationId(): String

There is no conversation id concept for a request, so this method returns null.