Package org.zalando.logbook
Class Conditions
- java.lang.Object
-
- org.zalando.logbook.Conditions
-
@API(status=STABLE) public final class Conditions extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends HttpMessage>
Predicate<T>contentType(String contentType, String... contentTypes)static <T extends HttpMessage>
Predicate<T>exclude(Collection<Predicate<T>> predicates)static <T extends HttpMessage>
Predicate<T>exclude(Predicate<T>... predicates)static <T extends HttpMessage>
Predicate<T>header(String key, String value)static <T extends HttpMessage>
Predicate<T>header(String key, Predicate<String> predicate)static <T extends HttpMessage>
Predicate<T>header(BiPredicate<String,String> predicate)static <T extends HttpRequest>
Predicate<T>requestTo(String pattern)static <T extends HttpMessage>
Predicate<T>withoutContentType()static <T extends HttpMessage>
Predicate<T>withoutHeader(String key)
-
-
-
Method Detail
-
exclude
@SafeVarargs public static <T extends HttpMessage> Predicate<T> exclude(Predicate<T>... predicates)
-
exclude
public static <T extends HttpMessage> Predicate<T> exclude(Collection<Predicate<T>> predicates)
-
requestTo
public static <T extends HttpRequest> Predicate<T> requestTo(String pattern)
-
contentType
public static <T extends HttpMessage> Predicate<T> contentType(String contentType, String... contentTypes)
-
withoutContentType
public static <T extends HttpMessage> Predicate<T> withoutContentType()
-
header
public static <T extends HttpMessage> Predicate<T> header(String key, String value)
-
header
public static <T extends HttpMessage> Predicate<T> header(String key, Predicate<String> predicate)
-
header
public static <T extends HttpMessage> Predicate<T> header(BiPredicate<String,String> predicate)
-
withoutHeader
public static <T extends HttpMessage> Predicate<T> withoutHeader(String key)
-
-