Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » runtime » [javadoc | source]
org.apache.jasper.runtime
public final class: ProtectedFunctionMapper [javadoc | source]
java.lang.Object
   javax.el.FunctionMapper
      org.apache.jasper.runtime.ProtectedFunctionMapper

All Implemented Interfaces:
    FunctionMapper

Maps EL functions to their Java method counterparts. Keeps the actual Method objects protected so that JSP pages can't indirectly do reflection.
Method from org.apache.jasper.runtime.ProtectedFunctionMapper Summary:
getInstance,   getMapForFunction,   mapFunction,   resolveFunction
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.runtime.ProtectedFunctionMapper Detail:
 public static ProtectedFunctionMapper getInstance() 
    Generated Servlet and Tag Handler implementations call this method to retrieve an instance of the ProtectedFunctionMapper. This is necessary since generated code does not have access to create instances of classes in this package.
 public 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. This method is used for the case when there is only one function in the EL expression.
 public  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.
 public Method resolveFunction(String prefix,
    String localName) 
    Resolves the specified local name and prefix into a Java.lang.Method. Returns null if the prefix and local name are not found.