Class GrailsControllerUrlMappings

  • All Implemented Interfaces:
    UrlMappings, UrlMappingsHolder, groovy.lang.GroovyObject

    public class GrailsControllerUrlMappings
    extends org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings
    A UrlMappings implementation that matches URLs directly onto controller instances
    Since:
    3.0
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings

        org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings.ControllerKey
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UrlMapping[] getUrlMappings()
      Retrieves the held UrlMapping instances as an array
      UrlMappingInfo[] matchAll​(java.lang.String uri)
      Matches all possible UrlMappingInfo instances to the given URI and returns them all
      UrlMappingInfo[] matchAll​(java.lang.String uri, java.lang.String httpMethod)
      Match all possible UrlMappingInfo instances to the given URI and HTTP method
      UrlMappingInfo[] matchAll​(java.lang.String uri, java.lang.String httpMethod, java.lang.String version)
      Match all possible UrlMappingInfo instances to the given URI and HTTP method
      UrlMappingInfo[] matchAll​(java.lang.String uri, org.springframework.http.HttpMethod httpMethod)
      Match all possible UrlMappingInfo instances to the given URI and HTTP method
      UrlMappingInfo[] 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface groovy.lang.GroovyObject

        getProperty, invokeMethod, setProperty
    • 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: UrlMappingsHolder
        Retrieves 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: UrlMappingsHolder
        Matches 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: UrlMappingsHolder
        Match all possible UrlMappingInfo instances to the given URI and HTTP method
        Parameters:
        uri - The URI to match
        httpMethod - 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: UrlMappingsHolder
        Match all possible UrlMappingInfo instances to the given URI and HTTP method
        Parameters:
        uri - The URI to match
        httpMethod - 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: UrlMappingsHolder
        Match all possible UrlMappingInfo instances to the given URI and HTTP method
        Parameters:
        uri - The URI to match
        httpMethod - 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: UrlMappingsHolder
        Match all possible UrlMappingInfo instances to the given URI and HTTP method
        Parameters:
        uri - The URI to match
        httpMethod - The HTTP method (GET,POST,PUT,DELETE etc.)
        version - The version
        Returns:
        An array of 0 or many UrlMappingInfo instances