A Matcher is used to configure matching for Interceptor instances
| Type | Name and description |
|---|---|
java.lang.String |
THROWABLE |
| Type | Name and description |
|---|---|
boolean |
doesMatch(java.lang.String uri, grails.web.mapping.UrlMappingInfo info)Checks whether the given grails.web.mapping.UrlMappingInfo matches |
boolean |
doesMatch(java.lang.String uri, grails.web.mapping.UrlMappingInfo info, java.lang.String method)Perform the matches using the http method of the request instead of the UrlMappingInfo |
Matcher |
except(java.util.Map arguments)Synonym for Matcher.excludes |
Matcher |
excludes(java.util.Map arguments)Adds an exclusion for the given arguments |
Matcher |
excludes(groovy.lang.Closure<java.lang.Boolean> condition)Adds an exclusion that is calculated by the given closure |
Matcher |
matchAll()Indicate that this matcher should match all requests |
Matcher |
matches(java.util.Map arguments)Defines the match for the given arguments |
Checks whether the given grails.web.mapping.UrlMappingInfo matches
info - The grails.web.mapping.UrlMappingInfo to checkPerform the matches using the http method of the request instead of the UrlMappingInfo
Synonym for Matcher.excludes
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 groovy.lang.InterceptorIndicate that this matcher should match all requests
Defines the match for the given arguments
arguments - A named argument map including one or more of the controller name, action name, namespace and method