Class Conditions

java.lang.Object
org.zalando.logbook.core.Conditions

@API(status=STABLE) public final class Conditions extends Object
  • Method Details

    • exclude

      @SafeVarargs public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> exclude(Predicate<T>... predicates)
    • exclude

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> exclude(Collection<Predicate<T>> predicates)
    • exclude

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> exclude(Stream<Predicate<T>> predicates)
    • requestTo

      public static <T extends org.zalando.logbook.HttpRequest> Predicate<T> requestTo(String pattern)
    • requestWithMethod

      public static <T extends org.zalando.logbook.HttpRequest> Predicate<T> requestWithMethod(String httpMethod)
    • contentType

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> contentType(String contentType, String... contentTypes)
    • withoutContentType

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> withoutContentType()
    • header

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> header(String key, String value)
    • header

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> header(String key, Predicate<String> predicate)
    • header

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> header(BiPredicate<String,String> predicate)
    • withoutHeader

      public static <T extends org.zalando.logbook.HttpMessage> Predicate<T> withoutHeader(String key)