Class AbstractPredicateServlet

    • Constructor Detail

      • AbstractPredicateServlet

        public AbstractPredicateServlet()
    • Method Detail

      • 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