HttpRequest parameters looked up against the request passed
at construction.
Due to limitations in the reflection classes, method overload
resolution has the following restrictions:
- Primitive types are not yet supported.
- The only Number supported is Double
- The arg "null" is typed as a String for locating a method.
Constructor Summary |
MethodTag(java.lang.String tag,
java.util.Dictionary namedArgs,
HttpRequest request)
Construct tag
With a pathetic parser, with little error handling. |
Method Summary |
java.lang.Object |
invoke()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
tagClassName
public java.lang.String tagClassName
tagClass
public java.lang.Class tagClass
tagMethodName
public java.lang.String tagMethodName
tagMethod
public java.lang.reflect.Method tagMethod
tagArgsString
public java.lang.String tagArgsString
tagArgs
public java.lang.Object[] tagArgs
MethodTag
public MethodTag(java.lang.String tag,
java.util.Dictionary namedArgs,
HttpRequest request)
throws java.lang.ClassNotFoundException,
java.lang.NoSuchMethodException
- Construct tag
With a pathetic parser, with little error handling.
- Parameters:
tag
- String of the form "package.name.class.method(args,...)"
Currently arguments can be named args (see below), longs,
Strings or null.namedArgs
- Dictionary of named arguments. Arg names in the tag
string are looked up in this Dictionary. Can be null.request
- A HttpRequest. If the named arguments are not
found in namedArgs, the request parameters are tried.
Can be null
invoke
public java.lang.Object invoke()
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException