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