/** * Creates a predicate that returns true if the given relative path starts with the provided prefix. */ public static Predicate prefix(final String path) { return new PathPrefixPredicate(path); }
/** * Creates a predicate that returns true if the relative request path matches any of the provided prefixes. */ public static Predicate prefixes(final String... paths) { return new PathPrefixPredicate(paths); }
@Override public Predicate build(final Map<String, Object> config) { String[] path = (String[]) config.get("path"); return new PathPrefixPredicate(path); } }
/** * Creates a predicate that returns true if the relative request path matches any of the provided prefixes. */ public static Predicate prefixes(final String... paths) { return new PathPrefixPredicate(paths); }
/** * Creates a predicate that returns true if the given relative path starts with the provided prefix. */ public static Predicate prefix(final String path) { return new PathPrefixPredicate(path); }
/** * Creates a predicate that returns true if the given relative path starts with the provided prefix. */ public static Predicate prefix(final String path) { return new PathPrefixPredicate(path); }
/** * Creates a predicate that returns true if the relative request path matches any of the provided prefixes. */ public static Predicate prefixes(final String... paths) { return new PathPrefixPredicate(paths); }
@Override public Predicate build(final Map<String, Object> config) { String[] path = (String[]) config.get("path"); return new PathPrefixPredicate(path); } }
@Override public Predicate build(final Map<String, Object> config) { String[] path = (String[]) config.get("path"); return new PathPrefixPredicate(path); } }