Class AbstractPredicateServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.commons.predicates.servlets.AbstractPredicateServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
- Direct Known Subclasses:
AbstractCommandServlet,AbstractListServlet,AbstractSearchServlet,OverlayServlet
Abstract servlet that retrieves the predicates from the request.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPredicate(SlingHttpServletRequest request) Returns the predicate retrieved from the given request.Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
getServletInfo, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Field Details
-
PATH_PARAM
default path parameter name- See Also:
-
PREDICATE_PARAM
default name for the predicate parameter- See Also:
-
FILTER_PARAM
default name for the filter parameter- See Also:
-
-
Constructor Details
-
AbstractPredicateServlet
public AbstractPredicateServlet()
-
-
Method Details
-
getPredicate
Returns the predicate retrieved from the given request. the predicates are retrieved from the request selectors and the request parameter values of the "predicate". those predicates form anAnyPredicate. If no predicates are specified in the request aTruePredicateis returned.Note: the "filter" parameters are used to add
ResourceFilterpredicates. although this is discouraged because java class names should never be passed over the wire.- Parameters:
request- servlet request- Returns:
- predicate
-