org.apache.jasper.runtime
public final class ProtectedFunctionMapper extends FunctionMapper implements FunctionMapper
Method Summary | |
---|---|
static ProtectedFunctionMapper | getInstance()
Generated Servlet and Tag Handler implementations call this method to
retrieve an instance of the ProtectedFunctionMapper. |
static ProtectedFunctionMapper | getMapForFunction(String fnQName, Class c, String methodName, Class[] args)
Creates an instance for this class, and stores the Method for the given
EL function prefix and name. |
void | mapFunction(String fnQName, Class c, String methodName, Class[] args)
Stores a mapping from the given EL function prefix and name to the given
Java method.
|
Method | resolveFunction(String prefix, String localName)
Resolves the specified local name and prefix into a Java.lang.Method.
|
Returns: A new protected function mapper.
Parameters: fnQName The EL function qualified name (including prefix) c The class containing the Java method methodName The name of the Java method args The arguments of the Java method
Throws: RuntimeException if no method with the given signature could be found.
Parameters: fnQName The EL function qualified name (including prefix) c The class containing the Java method methodName The name of the Java method args The arguments of the Java method
Throws: RuntimeException if no method with the given signature could be found.
Parameters: prefix the prefix of the function localName the short name of the function
Returns: the result of the method mapping. Null means no entry found.