/** * Creates a new {@link CompositeServiceEntry} whose {@link Service} is bound at the path that matches * the specified glob pattern. * * @see PathMapping#ofGlob(String) */ public static <I extends Request, O extends Response> CompositeServiceEntry<I, O> ofGlob(String glob, Service<I, O> service) { return new CompositeServiceEntry<>(PathMapping.ofGlob(glob), service); }
return ofGlob(pathPattern.substring(GLOB.length()));
final String glob = pattern.substring(GLOB.length()); if (glob.startsWith("/")) { return PathMapping.ofGlob(concatPaths(pathPrefix, glob)); } else { // NB: We cannot use PathMapping.ofGlob(pathPrefix + "/**/" + glob) here