public class HttpServletContextMap extends StringKeyedMapAdapter implements SharedMap
| Constructor and Description |
|---|
HttpServletContextMap(javax.servlet.ServletContext context)
Create a map wrapping given servlet context.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
getAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
protected java.util.Iterator |
getAttributeNames()
Hook method that needs to be implemented by concrete subclasses.
|
java.lang.Object |
getMutex()
Returns the shared mutex that may be synchronized on using a synchronized block.
|
protected void |
removeAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
protected void |
setAttribute(java.lang.String key,
java.lang.Object value)
Hook method that needs to be implemented by concrete subclasses.
|
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic HttpServletContextMap(javax.servlet.ServletContext context)
protected java.lang.Object getAttribute(java.lang.String key)
StringKeyedMapAdaptergetAttribute in class StringKeyedMapAdapterkey - the key to lookupprotected void setAttribute(java.lang.String key,
java.lang.Object value)
StringKeyedMapAdaptersetAttribute in class StringKeyedMapAdapterkey - the key to associate the value withvalue - the value to associate with the keyprotected void removeAttribute(java.lang.String key)
StringKeyedMapAdapterremoveAttribute in class StringKeyedMapAdapterkey - the key to removeprotected java.util.Iterator getAttributeNames()
StringKeyedMapAdaptergetAttributeNames in class StringKeyedMapAdapterpublic java.lang.Object getMutex()
SharedMap
synchronized (sharedMap.getMutex()) {
// do synchronized work
}