public class LazySessionBeanStore extends AbstractSessionBeanStore
A BeanStore that uses a HTTP session as backing storage.
Unlike EagerSessionBeanStore, this bean store is backed by an
HttpRequest, and only requires the session to be created when it needs to
write an instance to it.
This class is not threadsafe
EagerSessionBeanStore| Constructor and Description |
|---|
LazySessionBeanStore(javax.servlet.http.HttpServletRequest request,
NamingScheme namingScheme) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.HttpSession |
getSession(boolean create) |
protected javax.servlet.http.HttpSession |
getSessionIfExists()
Get the session, create equals false;
|
get, getAttribute, getAttributeNames, getLockStore, removeAttribute, setAttributeattach, clear, contains, detach, getNamingScheme, getPrefixedAttributeNames, isAttached, isLocalBeanStoreSyncNeeded, iterator, lock, put, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LazySessionBeanStore(javax.servlet.http.HttpServletRequest request,
NamingScheme namingScheme)
protected javax.servlet.http.HttpSession getSessionIfExists()
protected javax.servlet.http.HttpSession getSession(boolean create)
getSession in class AbstractSessionBeanStoreCopyright © 2015. All Rights Reserved.