Class BsonRequestBlacklistPredicate

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

public class BsonRequestBlacklistPredicate extends Object implements io.undertow.predicate.Predicate
a predicate that resolve to true if the request content is bson and all keys in the request content are mot in the specified blacklist
  • Constructor Details

    • BsonRequestBlacklistPredicate

      public BsonRequestBlacklistPredicate(String[] blacklist)
  • Method Details

    • resolve

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