Package grails.web.mapping
Interface UrlMappings
-
- All Superinterfaces:
UrlMappingsHolder
- All Known Implementing Classes:
org.grails.web.mapping.mvc.AbstractGrailsControllerUrlMappings,DefaultUrlMappingsHolder,GrailsControllerUrlMappings
public interface UrlMappings extends UrlMappingsHolder
Interface that allows access to all defined URL mappings and registration of new mappings at runtime- Since:
- 2.3
-
-
Field Summary
-
Fields inherited from interface grails.web.mapping.UrlMappingsHolder
BEAN_ID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<UrlMapping>addMappings(groovy.lang.Closure mappings)Adds URL mappings to the current definition for the given closure-
Methods inherited from interface grails.web.mapping.UrlMappingsHolder
allowedMethods, getExcludePatterns, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMapping, getReverseMappingNoDefault, getReverseMappingNoDefault, getReverseMappingNoDefault, getUrlMappings, match, matchAll, matchAll, matchAll, matchAll, matchAll, matchStatusCode, matchStatusCode
-
-
-
-
Method Detail
-
addMappings
java.util.Collection<UrlMapping> addMappings(groovy.lang.Closure mappings)
Adds URL mappings to the current definition for the given closure- Parameters:
mappings- The mappings- Returns:
- Only the added mappings. To obtain all mappings use
UrlMappingsHolder.getUrlMappings()
-
-