public final class ArgReplaceMethod extends Object implements freemarker.template.TemplateMethodModelEx
Given a URL string and N named/value pairs, replace each URL argument with respective name/value pair (if name matches existing URL argument), or add name/value pair to URL (if name does not match existing URL argument).
Usage: argreplace(url.args, "skipCount", cursor.nextPage, ...) Example: argreplace("?a=0&b=2", "a", 1, "c", 3) returns "?a=1&b=2&c=3"
| Constructor and Description |
|---|
ArgReplaceMethod() |
public Object exec(List args) throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExfreemarker.template.TemplateModelExceptionTemplateMethodModel.exec(java.util.List)Copyright © 2005–2021 Alfresco Software. All rights reserved.