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

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.mmbase.bridge.jsp.taglib.util.PageContextBacking
All Implemented Interfaces:
Backing, Map

public class PageContextBacking
extends AbstractMap
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,v 1.11 2006/07/08 13:03:12 michiel Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
PageContextBacking(PageContext pc)
           
 
Method Summary
 boolean containsKey(Object key)
           
 boolean containsOwnKey(Object 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 entrySet()
           
 Object get(Object key)
           
 Object getOriginal(Object key)
          Get the original value as stored in this Map, so without every wrapping which may have been done.
 void pullPageContext(PageContext pc)
           
 void pushPageContext(PageContext pc)
          When the container gets used in a different page-context (e.g.
 Object put(Object key, Object value)
           
 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)

setJspVar

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

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

getOriginal

public Object getOriginal(Object 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

containsOwnKey

public boolean containsOwnKey(Object 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

toString

public String toString()


MMBase build 1.8.1.20060716