/** * Predicate that returns true if the Content-Size of a request is above a * given value. * * @author Stuart Douglas */ public static Predicate maxContentSize(final long size) { return new MaxContentSizePredicate(size); }
@Override public Predicate build(final Map<String, Object> config) { Long max = (Long) config.get("value"); return new MaxContentSizePredicate(max); } }
/** * Predicate that returns true if the Content-Size of a request is above a * given value. * * @author Stuart Douglas */ public static Predicate maxContentSize(final long size) { return new MaxContentSizePredicate(size); }
/** * Predicate that returns true if the Content-Size of a request is above a * given value. * * @author Stuart Douglas */ public static Predicate maxContentSize(final long size) { return new MaxContentSizePredicate(size); }
@Override public Predicate build(final Map<String, Object> config) { Long max = (Long) config.get("value"); return new MaxContentSizePredicate(max); } }
@Override public Predicate build(final Map<String, Object> config) { Long max = (Long) config.get("value"); return new MaxContentSizePredicate(max); } }