| java.lang.Object org.mmbase.util.functions.FunctionProvider org.mmbase.util.functions.PatternNodeFunctionProvider
PatternNodeFunctionProvider | public class PatternNodeFunctionProvider extends FunctionProvider (Code) | | This Function provider creates function objects , which can create a String function based on a
pattern. Several kind of patterns are recognized. {PARAM.abc} creates a parameter 'abc' and puts the
value of it on that place in the result. {NODE.title}, puts the title field of the node on which
the function was applied on that place, and {REQUEST.getContextPath} applies that method to the
request parameter (and the result is added). {INITPARAM.xyz} access the servletcontext init parameters xyz.
It is also possible to use request parameters and attributes with {REQUESTPARAM.xxx} and {REQUESTATTRIBUTE.yyy}.
The functions which are created have silly names like string0, string1 etc, so you want to wrap
them in a function with a reasonable name (this is done when specifying this thing in the builder
xml).
author: Michiel Meeuwissen version: $Id: PatternNodeFunctionProvider.java,v 1.15 2007/07/27 14:07:07 michiel Exp $ since: MMBase-1.8 |
Inner Class :protected static class PatternNodeFunction extends NodeFunction | |
PatternNodeFunctionProvider | public PatternNodeFunctionProvider()(Code) | | |
handleRequest | public static void handleRequest(StringBuffer sb, Parameters parameters, Map<String, Method> requestMethods)(Code) | | Parameters: sb - StringBuffer (not a StringBuilder, because there is no appendTail(StringBuilder)...) since: MMBase-1.9 |
|
|