org.mmbase.bridge.jsp.taglib.util
Class PageContextBacking

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by org.mmbase.bridge.jsp.taglib.util.PageContextBacking
All Implemented Interfaces:
Map<String,Object>, Backing

public class PageContextBacking
extends AbstractMap<String,Object>
implements Backing

A basic implementation for the backing, using the PageContext itself. It can also store nulls, in contradiction to PageContext.

Since:
MMBase-1.8
Version:
$Id: PageContextBacking.java 39535 2009-11-04 14:54:47Z michiel $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PageContextBacking(PageContext pc)
           
 
Method Summary
 boolean containsKey(Object key)
           
 boolean containsOwnKey(String key)
          Whether this map contains the given key, but by its own, so not because of possible reflection of another structure (like the page context).
 Set<Map.Entry<String,Object>> entrySet()
           
 Object get(Object key)
           
 Object getOriginal(String key)
          Get the original value as stored in this Map, so without every wrapping which may have been done.
 Map<String,Object> getOriginalMap()
           
 PageContext getPageContext()
           
 boolean isELIgnored()
           
 void pullPageContext(PageContext pc)
           
 void pushPageContext(PageContext pc)
          When the container gets used in a different page-context (e.g.
 Object put(String key, Object value)
           
(package private)  void release()
           
 void setJspVar(PageContext pc, String jspvar, int vartype, Object value)
           
 String toString()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

PageContextBacking

public PageContextBacking(PageContext pc)
Method Detail

pushPageContext

public void pushPageContext(PageContext pc)
Description copied from interface: Backing
When the container gets used in a different page-context (e.g. because it was stored in the request or in the session), the new one must be pushed. And pulled again when ready.

Specified by:
pushPageContext in interface Backing

pullPageContext

public void pullPageContext(PageContext pc)
Specified by:
pullPageContext in interface Backing
See Also:
Backing.pushPageContext(PageContext)

getPageContext

public PageContext getPageContext()
Specified by:
getPageContext in interface Backing

setJspVar

public void setJspVar(PageContext pc,
                      String jspvar,
                      int vartype,
                      Object value)
Specified by:
setJspVar in interface Backing

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>
Specified by:
entrySet in class AbstractMap<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>
Overrides:
put in class AbstractMap<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>
Overrides:
get in class AbstractMap<String,Object>

getOriginal

public Object getOriginal(String key)
Description copied from interface: Backing
Get the original value as stored in this Map, so without every wrapping which may have been done.

Specified by:
getOriginal in interface Backing

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>
Overrides:
containsKey in class AbstractMap<String,Object>

containsOwnKey

public boolean containsOwnKey(String key)
Description copied from interface: Backing
Whether this map contains the given key, but by its own, so not because of possible reflection of another structure (like the page context).

Specified by:
containsOwnKey in interface Backing

getOriginalMap

public Map<String,Object> getOriginalMap()
Specified by:
getOriginalMap in interface Backing

release

void release()

isELIgnored

public boolean isELIgnored()
Specified by:
isELIgnored in interface Backing

toString

public String toString()
Overrides:
toString in class AbstractMap<String,Object>


MMBase 2.0-SNAPSHOT - null