requestHasNonIgnoredParameters
public static boolean requestHasNonIgnoredParameters(java.util.Collection<java.lang.String> ignoreUrlParams,
org.apache.sling.api.SlingHttpServletRequest request)
Checks if a request contains any parameters that are not defined in the ignoreUrlParams.
Wildcards as they are possible to configure on Apache-Dispatcher, are also properly checked.
- Parameters:
ignoreUrlParams
- The list of configured ignoreUrlParams (regular expressions)
request
- The slingRequest whose parameters we want to check
- Returns:
- true if there was any parameter that is not defined on the ignoreUrlsParams-Collection, otherwise false