java.lang.Object | |
↳ | org.springframework.security.web.util.AntPathRequestMatcher |
Matcher which compares a pre-defined ant-style pattern against the URL
(servletPath + pathInfo
) of an HttpServletRequest
.
The query string of the URL is ignored and matching is case-insensitive.
Using a pattern value of /**
or **
is treated as a universal
match, which will match any request. Patterns which end with /**
(and have no other wildcards)
are optimized by using a substring match — a pattern of /aaa/**
will match /aaa
,
/aaa/
and any sub-directories, such as /aaa/bbb/ccc
.
For all other cases, Spring's AntPathMatcher is used to perform the match. See the Spring documentation for this class for comprehensive information on the syntax used.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a matcher with the specific pattern which will match all HTTP methods.
| |||||||||||
Creates a matcher with the supplied pattern which will match all HTTP methods.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns true if the configured pattern (and HTTP-Method) match those of the supplied request.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.security.web.util.RequestMatcher
|
Creates a matcher with the specific pattern which will match all HTTP methods.
pattern | the ant pattern to use for matching |
---|
Creates a matcher with the supplied pattern which will match all HTTP methods.
pattern | the ant pattern to use for matching |
---|---|
httpMethod | the HTTP method. The matches method will return false if the incoming request doesn't
have the same method.
|
Returns true if the configured pattern (and HTTP-Method) match those of the supplied request.
request | the request to match against. The ant pattern will be matched against the
servletPath + pathInfo of the request.
|
---|