Class BsonRequestPropEqualsPredicate

java.lang.Object
org.restheart.security.predicates.BsonRequestPropEqualsPredicate
All Implemented Interfaces:
io.undertow.predicate.Predicate

public class BsonRequestPropEqualsPredicate extends Object implements io.undertow.predicate.Predicate
a predicate that resolve to true if the request content is bson and the value of the property 'key' (can use the dot notation) is equal to 'value'
  • Constructor Details

    • BsonRequestPropEqualsPredicate

      public BsonRequestPropEqualsPredicate(String key, io.undertow.attribute.ExchangeAttribute value)
  • Method Details

    • resolve

      public boolean resolve(io.undertow.server.HttpServerExchange exchange)
      Specified by:
      resolve in interface io.undertow.predicate.Predicate