private static class RequestPredicates.ContentTypePredicate extends RequestPredicates.HeadersPredicate
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MediaType> |
mediaTypes |
Modifier | Constructor and Description |
---|---|
|
ContentTypePredicate(MediaType... mediaTypes) |
private |
ContentTypePredicate(java.util.Set<MediaType> mediaTypes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(RequestPredicates.Visitor visitor)
Accept the given visitor.
|
java.lang.String |
toString() |
test
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, negate, nest, or
private final java.util.Set<MediaType> mediaTypes
public ContentTypePredicate(MediaType... mediaTypes)
private ContentTypePredicate(java.util.Set<MediaType> mediaTypes)
public void accept(RequestPredicates.Visitor visitor)
RequestPredicate
RequestPredicates.Visitor.unknown(RequestPredicate)
; composed RequestPredicate
implementations are expected to call accept
for all components that make up this
request predicate.visitor
- the visitor to acceptpublic java.lang.String toString()
toString
in class RequestPredicates.HeadersPredicate