public class RequestBeanStore extends AttributeBeanStore
A BeanStore that uses a HTTP request as backing storage.
This class is not threadsafe
Constructor and Description |
---|
RequestBeanStore(javax.servlet.http.HttpServletRequest request,
NamingScheme namingScheme) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getAttribute(String key)
Gets an attribute from the underlying storage
|
protected Collection<String> |
getAttributeNames()
Gets an enumeration of the attribute names present in the underlying
storage
|
LockStore |
getLockStore() |
javax.servlet.http.HttpServletRequest |
getRequest() |
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, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RequestBeanStore(javax.servlet.http.HttpServletRequest request, NamingScheme namingScheme)
protected Object getAttribute(String key)
AttributeBeanStore
getAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attributeprotected void removeAttribute(String key)
AttributeBeanStore
removeAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to removeprotected Collection<String> getAttributeNames()
AttributeBeanStore
getAttributeNames
in class AttributeBeanStore
protected void setAttribute(String key, Object instance)
AttributeBeanStore
setAttribute
in class AttributeBeanStore
key
- The (prefixed) id of the attribute to setinstance
- The instancepublic javax.servlet.http.HttpServletRequest getRequest()
public LockStore getLockStore()
getLockStore
in class AttributeBeanStore
Copyright © 2016. All rights reserved.