|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.velocity.ContextUtils
public final class ContextUtils
Utilities for manipulating Velocity contexts.
Method Summary | |
---|---|
static void |
putAll(org.apache.velocity.context.Context dest,
org.apache.velocity.context.Context source)
Copies entries from a source Context to a destination Context . |
static Map<String,Object> |
toMap(org.apache.velocity.context.Context context)
Convert a velocity Context into a map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Map<String,Object> toMap(org.apache.velocity.context.Context context)
Context
into a map.
Uses AbstractContext.getKeys()
so is vulnerable to the same problems
described with putAll(Context, Context)
context
- Context to convert into a map
public static void putAll(org.apache.velocity.context.Context dest, org.apache.velocity.context.Context source)
Context
to a destination Context
.
This method is inherently unreliable because the implementation of AbstractContext.getKeys() used in
other Velocity contexts doesn't delegate correctly. Because of this only values present in the outmost
context of the source are likely to be copied.
dest
- Destination contextsource
- Context to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |