|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UrlMappingsHolder
Main entry point of Grails URL mapping mechanism. This interface defines methods to match URLs and create reverse mappings based on the UrlMapping instances the implementor contains
Field Summary | |
---|---|
static String |
BEAN_ID
|
Method Summary | |
---|---|
List |
getExcludePatterns()
Retrieves the held Exclude Pattern instances as a list, could be null if there is no exclude |
UrlCreator |
getReverseMapping(String controller,
String action,
Map params)
Retrieves the best guess of a URI for the given controller, action and parameters |
UrlMapping[] |
getUrlMappings()
Retrieves the held UrlMapping instances as an array |
UrlMappingInfo |
match(String uri)
Match and return the first UrlMappingInfo instance possible |
UrlMappingInfo[] |
matchAll(String uri)
Matches all possible UrlMappingInfo instances to the given URI and returns them all |
UrlMappingInfo[] |
matchAll(String uri,
String httpMethod)
Match all possible UrlMappingInfo instances to the given URI and HTTP method |
UrlMappingInfo |
matchStatusCode(int responseCode)
Match and return the first UrlMappingInfo instance possible |
UrlMappingInfo |
matchStatusCode(int responseCode,
Throwable e)
Match and return for first UrlMappingInfo for the give response code and exception |
Field Detail |
---|
static final String BEAN_ID
Method Detail |
---|
UrlMapping[] getUrlMappings()
List getExcludePatterns()
UrlCreator getReverseMapping(String controller, String action, Map params)
controller
- The name of the controlleraction
- The name of the action or nullparams
- The parameters or null
UrlMappingInfo match(String uri)
uri
- The URI to match
UrlMappingInfo[] matchAll(String uri)
uri
- The URI to match
UrlMappingInfo[] matchAll(String uri, String httpMethod)
uri
- The URI to matchhttpMethod
- The HTTP method (GET,POST,PUT,DELETE etc.)
UrlMappingInfo matchStatusCode(int responseCode)
responseCode
- The responseCode to match
UrlMappingInfo matchStatusCode(int responseCode, Throwable e)
responseCode
- The response codee
- The exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |