public class AntPathMatcher extends Object
'?' - matches one character '*' - matches zero or more characters '**' - matches zero or more directories in a path.
The instances of this class can be configured via its AntPathMatcher.Builder to: (1) Use a custom
path separator. The default is '/' character (2) Ignore character case during comparison. The
default is false (3) Match start. Determines whether the pattern at least matches as far
as the given base path goes, assuming that a full path may then match as well. The default is
false.
Specify whether to trim tokenized paths. The default is false The custom path
separator & ignoring character case options were inspired by Spring's AntPathMatcher.
| Modifier and Type | Class and Description |
|---|---|
static class |
AntPathMatcher.Builder
Builder for AntPathMatcher
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatch(String pattern,
String path) |
static AntPathMatcher.Builder |
newBuild() |
public static AntPathMatcher.Builder newBuild()
Copyright © 2024 flmelody. All rights reserved.