public abstract class AbstractPredicateServlet extends SlingAllMethodsServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
FILTER_PARAM
default name for the filter parameter
|
static String |
PATH_PARAM
default path parameter name
|
static String |
PREDICATE_PARAM
default name for the predicate parameter
|
| Constructor and Description |
|---|
AbstractPredicateServlet() |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
getPredicate(SlingHttpServletRequest request)
Returns the predicate retrieved from the given request.
|
getServletInfo, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, logpublic static final String PATH_PARAM
public static final String PREDICATE_PARAM
public static final String FILTER_PARAM
public Predicate getPredicate(SlingHttpServletRequest request)
AnyPredicate. If no predicates are specified in the request a
TruePredicate is returned.
Note: the "filter" parameters are used to add ResourceFilter
predicates. although this is discouraged because java class names should
never be passed over the wire.
request - servlet requestCopyright © 2010 - 2020 Adobe. All Rights Reserved