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

SessionScope

open class SessionScope : AbstractRequestAttributesScope

Session-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_SESSIONRequestContextListenerorg.springframework.web.filter.RequestContextFilterorg.springframework.web.servlet.DispatcherServlet

Constructors

<init>

SessionScope()

Session-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

get

open fun get(name: String, objectFactory: ObjectFactory<*>): Any

getConversationId

open fun getConversationId(): String

remove

open fun remove(name: String): Any