A Matcher is used to configure matching for grails.artefact.Interceptor instances
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
THROWABLE |
Constructor and description |
---|
Matcher
() |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
doesMatch(java.lang.String uri, UrlMappingInfo info) Checks whether the given UrlMappingInfo matches
|
|
boolean |
doesMatch(java.lang.String uri, UrlMappingInfo info, java.lang.String method) Perform the matches using the http method of the request instead of the UrlMappingInfo |
|
Matcher |
except(Map arguments) Synonym for Matcher#excludes(groovy.lang.Closure) |
|
Matcher |
excludes(Map arguments) Adds an exclusion for the given arguments
|
|
Matcher |
excludes(Closure condition) Adds an exclusion that is calculated by the given closure
|
|
boolean |
isExclude() Checks whether the current matcher is a exclude matcher or not |
|
Matcher |
matchAll() Indicate that this matcher should match all requests
|
|
Matcher |
matches(Map arguments) Defines the match for the given arguments
|
Checks whether the given UrlMappingInfo matches
info
- The UrlMappingInfo to checkPerform the matches using the http method of the request instead of the UrlMappingInfo
Adds an exclusion for the given arguments
arguments
- A named argument map including one or more of the controller name, action name, namespace and methodAdds an exclusion that is calculated by the given closure
condition
- The condition, a closure which has full access to the properties of the InterceptorChecks whether the current matcher is a exclude matcher or not
Indicate that this matcher should match all requests