Class Predicates


  • public final class Predicates
    extends java.lang.Object
    The request/response predicates to use with ConstrainedCacheBuilder.requestFilter(Predicate) and ConstrainedCacheBuilder.responseFilter(Predicate).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.function.Predicate<java.net.http.HttpRequest> uri​(java.net.URI uri)
      The Predicate that matches HttpRequests with given uri.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • uri

        public static java.util.function.Predicate<java.net.http.HttpRequest> uri​(java.net.URI uri)
        The Predicate that matches HttpRequests with given uri.
        Parameters:
        uri - The uri to match.
        Returns:
        The Predicate that matches HttpRequests with given uri.