public final class RequestPath extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasAnySelector(org.apache.sling.api.SlingHttpServletRequest request,
String... expectedSelectors)
Checks if one of the given selectors is present in the current URL request (at any position).
|
static boolean |
hasSelector(org.apache.sling.api.SlingHttpServletRequest request,
String expectedSelector)
Checks if the given selector is present in the current URL request (at any position).
|
public static boolean hasSelector(org.apache.sling.api.SlingHttpServletRequest request,
String expectedSelector)
request - Sling requestexpectedSelector - Selector string to check for.public static boolean hasAnySelector(org.apache.sling.api.SlingHttpServletRequest request,
String... expectedSelectors)
request - Sling requestexpectedSelectors - Selectors string to check for.Copyright © 2014 wcm.io. All rights reserved.