| java.lang.Object org.ofbiz.minilang.method.MethodContext
MethodContext | public class MethodContext (Code) | | A single operation, does the specified operation on the given field
author: David E. Jones author: Andy Zeneski version: $Revision: 1.1 $ since: 2.0 |
Constructor Summary | |
public | MethodContext(HttpServletRequest request, HttpServletResponse response, ClassLoader loader) | public | MethodContext(DispatchContext ctx, Map context, ClassLoader loader) | public | MethodContext(Map context, ClassLoader loader, int methodType) This is a very simple constructor which assumes the needed objects (dispatcher,
delegator, security, request, response, etc) are in the context. |
EVENT | final public static int EVENT(Code) | | |
SERVICE | final public static int SERVICE(Code) | | |
methodType | protected int methodType(Code) | | |
MethodContext | public MethodContext(Map context, ClassLoader loader, int methodType)(Code) | | This is a very simple constructor which assumes the needed objects (dispatcher,
delegator, security, request, response, etc) are in the context.
Will result in calling method as a service or event, as specified.
|
expandString | public String expandString(String original)(Code) | | Expands environment variables delimited with ${}
|
getEnv | public Object getEnv(String key)(Code) | | Gets the named value from the environment. Supports the "." (dot) syntax to access Map members and the
"[]" (bracket) syntax to access List entries. This value is expanded, supporting the insertion of other
environment values using the "${}" notation.
Parameters: key - The name of the environment value to get. Can contain "." and "[]" syntax elements as described above. The environment value if found, otherwise null. |
getMethodType | public int getMethodType()(Code) | | |
getParameters | public Map getParameters()(Code) | | |
putAllEnv | public void putAllEnv(Map values)(Code) | | Calls putEnv for each entry in the Map, thus allowing for the additional flexibility in naming
supported in that method.
|
putEnv | public void putEnv(String key, Object value)(Code) | | Puts the named value in the environment. Supports the "." (dot) syntax to access Map members and the
"[]" (bracket) syntax to access List entries.
If the brackets for a list are empty the value will be appended to end of the list,
otherwise the value will be set in the position of the number in the brackets.
If a "+" (plus sign) is included inside the square brackets before the index
number the value will inserted/added at that index instead of set at that index.
This value is expanded, supporting the insertion of other
environment values using the "${}" notation.
Parameters: key - The name of the environment value to get. Can contain "." syntax elements as described above. Parameters: value - The value to set in the named environment location. |
removeEnv | public Object removeEnv(String key)(Code) | | Removes the named value from the environment. Supports the "." (dot) syntax to access Map members and the
"[]" (bracket) syntax to access List entries. This value is expanded, supporting the insertion of other
environment values using the "${}" notation.
Parameters: key - The name of the environment value to get. Can contain "." syntax elements as described above. |
|
|