|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebAppData
Interface used to store domain application specific instance data. The data stored and retrieved using this interface is globally shared across the requester session. This implementation of this can be used to store application data for the current requester in cases where the data must be shared between multiple WebAppAccess instances for a single user. The default implementation of this interface stores the data in the users Session so take care in how much data you store. The implementation of this is replaceable, so that other mechanisms can be used as the storage location. See the technical reference for more detail.
Field Summary | |
---|---|
static java.lang.String |
REQUEST_PROPERTY
The name on the attribute property key for putting a reference to a WebAppData in the HttpServletRequest. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String key)
Returns the value to which this WebAppData maps the specified key. |
void |
init(javax.servlet.http.HttpServletRequest request)
Initialize InstanceDataStorage with data it might need. |
java.util.Iterator |
keys()
Returns a Iterator view of the keys contained in this WebAppData. |
void |
put(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this WebAppData. |
void |
remove(java.lang.String key)
Removes the mapping for this key from this WebAppData if present. |
Methods inherited from interface com.bowstreet.util.IExemplar |
---|
newInstance |
Field Detail |
---|
static final java.lang.String REQUEST_PROPERTY
Method Detail |
---|
java.lang.Object get(java.lang.String key)
key
- Key whose associated value is to be returned.
void init(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest for the current request.java.util.Iterator keys()
void put(java.lang.String key, java.lang.Object value)
key
- key with which the specified value is to be associated.value
- value to be associated with the specified key.
java.lang.NullPointerException
- this WebAppData does not permit null
keys or values, and the specified key or value is
null.void remove(java.lang.String key)
key
- key whose mapping is to be removed from the WebAppData.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |