/** * Replace any path requirements with the supplied path. * * @param path the path to use as a requirement * @return {@code this}. * @since 1.12 */ @NonNull public URIRequirementBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }
if (requirement instanceof PathRequirement) { final AntPathMatcher matcher = new AntPathMatcher(); String path = ((PathRequirement) requirement).getPath(); if (!caseSensitive) { path = path.toLowerCase();
if (requirement instanceof PathRequirement) { final AntPathMatcher matcher = new AntPathMatcher(); String path = ((PathRequirement) requirement).getPath(); if (!caseSensitive) { path = path.toLowerCase();
/** * Replace any path requirements with the supplied path. * * @param path the path to use as a requirement * @return {@code this}. * @since 1.12 */ @NonNull public URIRequirementBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }
/** * Replace any path requirements with the supplied path. * * @param path to use as a requirement * @return {@code this}. */ @NonNull public GitURIRequirementsBuilder withPath(@CheckForNull String path) { withoutPath(); if (path != null) { requirements.add(new PathRequirement(path)); } return this; }