@CompileStatic class UrlMappingsHandlerMapping extends AbstractHandlerMapping
Spring MVC HandlerMapping to match requests onto Grails controllers
| Modifiers | Name | Description |
|---|---|---|
static class |
UrlMappingsHandlerMapping.ErrorHandlingHandler |
|
static class |
UrlMappingsHandlerMapping.ObservationRouteHandler |
Sets the HTTP server observation's route from the matched controller/action, so the
http.server.requests uri tag is a low-cardinality route (e.g. |
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
MATCHED_REQUEST |
|
protected MimeTypeResolver |
mimeTypeResolver |
|
protected UrlPathHelper |
urlHelper |
|
protected UrlMappingsHolder |
urlMappingsHolder |
|
protected HandlerInterceptor[] |
webRequestHandlerInterceptors |
| Fields inherited from class | Fields |
|---|---|
class AbstractHandlerMapping |
BEST_MATCHING_HANDLER_ATTRIBUTE, LOOKUP_PATH, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, URI_TEMPLATE_VARIABLES_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, API_VERSION_ATTRIBUTE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Type | Name and description |
|---|---|
boolean |
resolveHiddenHttpMethodWhether to resolve a "_method" parameter on a POST into the overridden request method while matching URL mappings. |
| Constructor and description |
|---|
UrlMappingsHandlerMapping(UrlMappingsHolder urlMappingsHolder) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected java.lang.String |
findRequestedVersion(GrailsWebRequest currentRequest) |
|
protected HandlerExecutionChain |
getHandlerExecutionChain(java.lang.Object handler, HttpServletRequest request) |
|
protected java.lang.Object |
getHandlerInternal(HttpServletRequest request) |
|
protected java.lang.String |
resolveHttpMethod(HttpServletRequest request)The HTTP method to match URL mappings against. |
|
void |
setGrailsCorsConfiguration(GrailsCorsConfiguration grailsCorsConfiguration) |
|
void |
setHandlerInterceptors(HandlerInterceptor[] handlerInterceptors) |
|
void |
setMimeTypeResolver(MimeTypeResolver mimeTypeResolver) |
|
void |
setWebRequestInterceptors(WebRequestInterceptor[] webRequestInterceptors) |
Whether to resolve a "_method" parameter on a POST into the overridden request method while matching URL mappings. Set when the hidden HTTP method filter is disabled. The dispatcher normally wraps the request with the override before this runs, so this is the fallback for one that does not.
The HTTP method to match URL mappings against.
An override the dispatcher already resolved is honoured wherever it applies, forwards and includes included - the servlet filter's wrapper reports the overridden method for the whole of a request, and an application is entitled to the same answer in either mode.
Deriving a fresh override from the parameters is what an internal dispatch must not do: it inherits the parameters of the request that started it, so a "_method" the dispatcher never acted on would go on selecting an action for every forward after it.