Package org.grails.web.mapping.mvc
Class GrailsControllerUrlMappings
- java.lang.Object
-
- org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings
-
- org.grails.web.mapping.mvc.GrailsControllerUrlMappings
-
- All Implemented Interfaces:
UrlMappings,UrlMappingsHolder,groovy.lang.GroovyObject
public class GrailsControllerUrlMappings extends org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappingsAUrlMappingsimplementation that matches URLs directly onto controller instances- Since:
- 3.0
-
-
Field Summary
-
Fields inherited from interface grails.web.mapping.UrlMappingsHolder
BEAN_ID
-
-
Constructor Summary
Constructors Constructor Description GrailsControllerUrlMappings(grails.core.GrailsApplication grailsApplication, UrlMappings urlMappingsHolderDelegate)GrailsControllerUrlMappings(grails.core.GrailsApplication grailsApplication, UrlMappings urlMappingsHolderDelegate, grails.web.UrlConverter urlConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlMapping[]getUrlMappings()Retrieves the held UrlMapping instances as an arrayUrlMappingInfo[]matchAll(java.lang.String uri)Matches all possible UrlMappingInfo instances to the given URI and returns them allUrlMappingInfo[]matchAll(java.lang.String uri, java.lang.String httpMethod)Match all possible UrlMappingInfo instances to the given URI and HTTP methodUrlMappingInfo[]matchAll(java.lang.String uri, java.lang.String httpMethod, java.lang.String version)Match all possible UrlMappingInfo instances to the given URI and HTTP methodUrlMappingInfo[]matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod)Match all possible UrlMappingInfo instances to the given URI and HTTP methodUrlMappingInfo[]matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod, java.lang.String version)Match all possible UrlMappingInfo instances to the given URI and HTTP method-
Methods inherited from class org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings
addMappings, allowedMethods, collectControllerMapping, collectControllerMappings, getDeferredMappings, getExcludePatterns, getMappingsToGrailsControllerMap, getMetaClass, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMappingNoDefault, getReverseMappingNoDefault, getReverseMappingNoDefault, getUrlConverter, getUrlMappingsHolderDelegate, match, matchStatusCode, matchStatusCode, registerController, setDeferredMappings, setMappingsToGrailsControllerMap, setMetaClass, setUrlConverter, setUrlMappingsHolderDelegate
-
-
-
-
Constructor Detail
-
GrailsControllerUrlMappings
public GrailsControllerUrlMappings(grails.core.GrailsApplication grailsApplication, UrlMappings urlMappingsHolderDelegate, grails.web.UrlConverter urlConverter)
-
GrailsControllerUrlMappings
public GrailsControllerUrlMappings(grails.core.GrailsApplication grailsApplication, UrlMappings urlMappingsHolderDelegate)
-
-
Method Detail
-
getUrlMappings
public UrlMapping[] getUrlMappings()
Description copied from interface:UrlMappingsHolderRetrieves the held UrlMapping instances as an array- Returns:
- An array of UrlMapping instances
-
matchAll
public UrlMappingInfo[] matchAll(java.lang.String uri)
Description copied from interface:UrlMappingsHolderMatches all possible UrlMappingInfo instances to the given URI and returns them all- Parameters:
uri- The URI to match- Returns:
- An array of 0 or many UrlMappngInfo instances
-
matchAll
public UrlMappingInfo[] matchAll(java.lang.String uri, java.lang.String httpMethod)
Description copied from interface:UrlMappingsHolderMatch all possible UrlMappingInfo instances to the given URI and HTTP method- Parameters:
uri- The URI to matchhttpMethod- The HTTP method (GET,POST,PUT,DELETE etc.)- Returns:
- An array of 0 or many UrlMappingInfo instances
-
matchAll
public UrlMappingInfo[] matchAll(java.lang.String uri, java.lang.String httpMethod, java.lang.String version)
Description copied from interface:UrlMappingsHolderMatch all possible UrlMappingInfo instances to the given URI and HTTP method- Parameters:
uri- The URI to matchhttpMethod- The HTTP method (GET,POST,PUT,DELETE etc.)version- The version of the API- Returns:
- An array of 0 or many UrlMappingInfo instances
-
matchAll
public UrlMappingInfo[] matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod)
Description copied from interface:UrlMappingsHolderMatch all possible UrlMappingInfo instances to the given URI and HTTP method- Parameters:
uri- The URI to matchhttpMethod- The HTTP method (GET,POST,PUT,DELETE etc.)- Returns:
- An array of 0 or many UrlMappingInfo instances
-
matchAll
public UrlMappingInfo[] matchAll(java.lang.String uri, org.springframework.http.HttpMethod httpMethod, java.lang.String version)
Description copied from interface:UrlMappingsHolderMatch all possible UrlMappingInfo instances to the given URI and HTTP method- Parameters:
uri- The URI to matchhttpMethod- The HTTP method (GET,POST,PUT,DELETE etc.)version- The version- Returns:
- An array of 0 or many UrlMappingInfo instances
-
-