Class AbstractPredicateServlet

All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
AbstractCommandServlet, AbstractListServlet, AbstractSearchServlet, OverlayServlet

public abstract class AbstractPredicateServlet extends SlingAllMethodsServlet
Abstract servlet that retrieves the predicates from the request.
See Also:
  • Field Details

  • Constructor Details

    • AbstractPredicateServlet

      public AbstractPredicateServlet()
  • Method Details

    • getPredicate

      public Predicate getPredicate(SlingHttpServletRequest request)
      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 an 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.

      Parameters:
      request - servlet request
      Returns:
      predicate