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 java.lang.Object |
getAttribute(java.lang.String key)
Gets an attribute from the underlying storage
|
protected java.util.Collection<java.lang.String> |
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying
storage
|
LockStore |
getLockStore() |
HttpServletRequest |
getRequest() |
protected void |
removeAttribute(java.lang.String key)
Removes an attribute from the underlying storage
|
protected void |
setAttribute(java.lang.String key,
java.lang.Object instance)
Sets an instance under a key in the underlying storage
|
attach, clear, contains, detach, get, getNamingScheme, getPrefixedAttributeNames, isAttached, iterator, lock, put, removepublic RequestBeanStore(HttpServletRequest request,
NamingScheme namingScheme)
protected java.lang.Object getAttribute(java.lang.String key)
AttributeBeanStoregetAttribute in class AttributeBeanStorekey - The (prefixed) id of the attributeprotected void removeAttribute(java.lang.String key)
AttributeBeanStoreremoveAttribute in class AttributeBeanStorekey - The (prefixed) id of the attribute to removeprotected java.util.Collection<java.lang.String> getAttributeNames()
AttributeBeanStoregetAttributeNames in class AttributeBeanStoreprotected void setAttribute(java.lang.String key,
java.lang.Object instance)
AttributeBeanStoresetAttribute in class AttributeBeanStorekey - The (prefixed) id of the attribute to setinstance - The instancepublic HttpServletRequest getRequest()
public LockStore getLockStore()
getLockStore in class AttributeBeanStoreCopyright © 2014. All Rights Reserved.