public class RequestBeanStore extends AttributeBeanStore
A BeanStore that uses a HTTP request as backing storage.
This class is not threadsafe
| Constructor and Description |
|---|
RequestBeanStore(HttpServletRequest request,
NamingScheme namingScheme) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getAttribute(String key)
Gets an attribute from the underlying storage
|
protected Iterator<String> |
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying
storage.
|
LockStore |
getLockStore() |
HttpServletRequest |
getRequest() |
protected boolean |
isLocalBeanStoreSyncNeeded() |
protected void |
removeAttribute(String key)
Removes an attribute from the underlying storage
|
protected void |
setAttribute(String key,
Object instance)
Sets an instance under a key in the underlying storage
|
attach, clear, contains, detach, get, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RequestBeanStore(HttpServletRequest request,
NamingScheme namingScheme)
protected Object getAttribute(String key)
AttributeBeanStoregetAttribute in class AttributeBeanStorekey - The (prefixed) id of the attributeprotected void removeAttribute(String key)
AttributeBeanStoreremoveAttribute in class AttributeBeanStorekey - The (prefixed) id of the attribute to removeprotected Iterator<String> getAttributeNames()
AttributeBeanStoregetAttributeNames in class AttributeBeanStoreprotected void setAttribute(String key, Object instance)
AttributeBeanStoresetAttribute in class AttributeBeanStorekey - The (prefixed) id of the attribute to setinstance - The instancepublic HttpServletRequest getRequest()
public LockStore getLockStore()
getLockStore in class AttributeBeanStoreprotected boolean isLocalBeanStoreSyncNeeded()
isLocalBeanStoreSyncNeeded in class AttributeBeanStoretrue if a bean store synchronization is required during AttributeBeanStore.attach() invocation, false otherwiseCopyright © 2015. All Rights Reserved.