public class ExtensionUtils extends Object
RuntimeExtension implementations.| Constructor and Description |
|---|
ExtensionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgumentCount(String extensionName,
Object[] arguments,
int count)
Helper method for checking if the number of arguments passed to a
RuntimeExtension are equal to what the extension requires. |
static Map<String,Object> |
setRequestAttributes(org.apache.sling.api.SlingHttpServletRequest request,
Map<String,Object> newRequestAttributes)
Helper method for setting specific attributes in a
SlingHttpServletRequest scope |
public static void checkArgumentCount(String extensionName, Object[] arguments, int count)
RuntimeExtension are equal to what the extension requires.extensionName - the name of the extensionarguments - the arguments arraycount - the expected number or argumentsorg.apache.sling.scripting.sightly.SightlyException - if the number of supplied arguments differs from what's expectedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.