|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
org.mmbase.bridge.jsp.taglib.util.ContextContainer
This is a HashMap, but the keys can contain 'dots', in which case there is searched for HashMaps in the HashMap.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary | |
static int |
LOCATION_APPLICATION
|
static int |
LOCATION_ATTRIBUTES
|
static int |
LOCATION_COOKIE
|
static int |
LOCATION_MULTIPART
|
static int |
LOCATION_NOTSET
|
static int |
LOCATION_PAGE
|
static int |
LOCATION_PARAMETERS
|
static int |
LOCATION_PARENT
|
static int |
LOCATION_REQUEST
|
static int |
LOCATION_SESSION
|
static int |
LOCATION_THIS
|
protected ContextContainer |
parent
|
| Constructor Summary | |
ContextContainer(String i,
ContextContainer p)
Since a ContextContainer can contain other ContextContainer, it has to know which ContextContainer contains this. |
|
| Method Summary | |
boolean |
containsKey(Object key)
|
boolean |
containsKey(String key)
|
boolean |
containsKey(String key,
boolean checkParent)
Like the containsKey of HashMap. |
Set |
entrySet()
|
Object |
find(PageContext pageContext,
int from,
String referId)
|
Object |
find(PageContext pageContext,
String externid)
|
Object |
findAndRegister(PageContext pageContext,
int from,
String referId,
String newId)
Searches a key in request, postparameters, session, parent context and registers it in this one. |
Object |
findAndRegister(PageContext pageContext,
int from,
String referId,
String newId,
boolean check)
|
Object |
findAndRegister(PageContext pageContext,
String id)
|
Object |
findAndRegister(PageContext pageContext,
String externid,
String newId)
|
Object |
findAndRegister(PageContext pageContext,
String externid,
String newId,
boolean check)
|
String |
findAndRegisterString(PageContext pageContext,
String id)
|
String |
findAndRegisterString(PageContext pageContext,
String id,
boolean check)
|
static Object |
fixEncoding(Object value,
PageContext pageContext)
|
protected static Object |
fixEncoding(Object value,
String encoding)
Java Servlet Specification Version 2.3 SRV.4.9 says that a servlet engine should read a request as ISO-8859-1 if request.getCharacterEncoding() returns null. |
Object |
get(Object key)
|
Object |
get(String key)
|
Object |
get(String key,
boolean checkParent)
Like get, but you can explicity indicate if to search 'parent' Contextes as well. |
protected abstract Backing |
getBacking()
Returns the Map which will is used for actually storing stuff. |
String |
getId()
|
Object |
getObject(String key)
|
protected org.mmbase.bridge.jsp.taglib.util.Pair |
getPair(String key,
boolean checkParent)
This function takes a key, which can contain dots. |
ContextContainer |
getParent()
|
boolean |
isPresent(String key)
|
boolean |
isRegistered(String key)
|
Set |
keySet()
|
static String |
locationToString(int i)
|
Object |
put(Object key,
Object value)
Keys must be Strings, so put(Object, ..) is forbidden in this HashMap! |
Object |
put(String key,
Object value)
Not all Strings can be allowed as keys. |
void |
register(String newId,
Object n)
|
void |
register(String newId,
Object n,
boolean check)
|
protected void |
register(String newId,
Object n,
boolean check,
boolean checkParent)
|
void |
register(String newId,
WriterHelper helper,
boolean check)
|
void |
registerNode(String newId,
Node n)
|
void |
release(PageContext pc,
ContextContainer p)
|
void |
reregister(String id,
Object n)
|
void |
setJspVar(PageContext pageContext,
String jspvar,
int type,
Object value)
|
void |
setParent(PageContext pc,
ContextContainer p)
|
protected Object |
simpleGet(String key,
boolean checkParent)
Like get, but does not try to search dots, because you know already that there aren't. |
static int |
stringToLocation(String s)
|
String |
toString()
|
void |
unRegister(String key)
|
protected void |
unRegister(String key,
boolean checkParent)
|
| Methods inherited from class java.util.AbstractMap |
clear, clone, containsValue, equals, hashCode, isEmpty, 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, putAll, remove, size, values |
| Field Detail |
public static final int LOCATION_NOTSET
public static final int LOCATION_PAGE
public static final int LOCATION_PARENT
public static final int LOCATION_PARAMETERS
public static final int LOCATION_MULTIPART
public static final int LOCATION_SESSION
public static final int LOCATION_COOKIE
public static final int LOCATION_ATTRIBUTES
public static final int LOCATION_REQUEST
public static final int LOCATION_APPLICATION
public static final int LOCATION_THIS
protected ContextContainer parent
| Constructor Detail |
public ContextContainer(String i,
ContextContainer p)
| Method Detail |
public static int stringToLocation(String s)
throws JspTagException
JspTagExceptionpublic static String locationToString(int i)
protected abstract Backing getBacking()
public void release(PageContext pc,
ContextContainer p)
public Set entrySet()
entrySet in interface Mappublic String getId()
public void setParent(PageContext pc,
ContextContainer p)
public ContextContainer getParent()
public Object put(Object key,
Object value)
put in interface Map
public Object put(String key,
Object value)
throws JspTagException
JspTagExceptionpublic boolean containsKey(Object key)
containsKey in interface Map
protected org.mmbase.bridge.jsp.taglib.util.Pair getPair(String key,
boolean checkParent)
throws JspTagException
JspTagException
public boolean containsKey(String key,
boolean checkParent)
throws JspTagException
key - The key to searchcheckParent - If this is false, it will only look in the current Container (and below).
JspTagException
public boolean containsKey(String key)
throws JspTagException
JspTagException
protected Object simpleGet(String key,
boolean checkParent)
public Object get(String key,
boolean checkParent)
throws JspTagException
JspTagException
public Object get(String key)
throws JspTagException
JspTagExceptionpublic Object get(Object key)
get in interface Mappublic Set keySet()
keySet in interface Map
public Object getObject(String key)
throws JspTagException
JspTagException
public void register(String newId,
Object n,
boolean check)
throws JspTagException
JspTagException
public void register(String newId,
WriterHelper helper,
boolean check)
throws JspTagException
JspTagException
protected void register(String newId,
Object n,
boolean check,
boolean checkParent)
throws JspTagException
JspTagException
public void register(String newId,
Object n)
throws JspTagException
JspTagException
public void registerNode(String newId,
Node n)
throws JspTagException
JspTagException
public boolean isRegistered(String key)
throws JspTagException
JspTagException
public void unRegister(String key)
throws JspTagException
JspTagException
protected void unRegister(String key,
boolean checkParent)
throws JspTagException
JspTagException
public void reregister(String id,
Object n)
throws JspTagException
JspTagException
protected static Object fixEncoding(Object value,
String encoding)
throws TaglibException
TaglibException
public static Object fixEncoding(Object value,
PageContext pageContext)
throws TaglibException
TaglibException
public Object find(PageContext pageContext,
int from,
String referId)
throws JspTagException
JspTagException
public Object find(PageContext pageContext,
String externid)
throws JspTagException
JspTagException
public Object findAndRegister(PageContext pageContext,
int from,
String referId,
String newId)
throws JspTagException
JspTagException
public Object findAndRegister(PageContext pageContext,
int from,
String referId,
String newId,
boolean check)
throws JspTagException
JspTagException
public Object findAndRegister(PageContext pageContext,
String externid,
String newId)
throws JspTagException
JspTagException
public Object findAndRegister(PageContext pageContext,
String externid,
String newId,
boolean check)
throws JspTagException
JspTagException
public Object findAndRegister(PageContext pageContext,
String id)
throws JspTagException
JspTagException
public String findAndRegisterString(PageContext pageContext,
String id)
throws JspTagException
JspTagException
public String findAndRegisterString(PageContext pageContext,
String id,
boolean check)
throws JspTagException
JspTagException
public boolean isPresent(String key)
throws JspTagException
JspTagException
public void setJspVar(PageContext pageContext,
String jspvar,
int type,
Object value)
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||