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.ServletRequest request,
NamingScheme namingScheme) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attach()
Attach the bean store, any updates from now on will be written through to
the underlying store.
|
boolean |
detach()
Detach the bean store, causing updates to longer be written through to the
underlying store.
|
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() |
boolean |
isAttached()
Return true if the bean store is attached
|
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
|
clear, contains, get, getNamingScheme, getPrefixedAttributeNames, iterator, lock, putpublic RequestBeanStore(javax.servlet.ServletRequest 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 Collection<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 boolean attach()
AttributeBeanStoreAttach the bean store, any updates from now on will be written through to the underlying store.
When the bean store is attached, the detached state is assumed to be authoritative if there are any conflicts.
attach in interface BoundBeanStoreattach in class AttributeBeanStorepublic boolean detach()
AttributeBeanStoredetach in interface BoundBeanStoredetach in class AttributeBeanStorepublic boolean isAttached()
BoundBeanStoreisAttached in interface BoundBeanStoreisAttached in class AttributeBeanStorepublic LockStore getLockStore()
getLockStore in class AttributeBeanStoreCopyright © 2014 Seam Framework. All Rights Reserved.