org.codehaus.groovy.grails.web.mapping
Interface UrlMappingInfo

All Known Implementing Classes:
AbstractUrlMappingInfo

public interface UrlMappingInfo

Defines that data that was produced when matching a URI with a UrlMapping instance.

Since:
0.5
See Also:
UrlMapping

Method Summary
 void configure(GrailsWebRequest webRequest)
          Configure this UrlMappingInfo the for the given GrailsWebRequest
 java.lang.String getActionName()
          The name of the action that the URL mappping maps to
 java.lang.String getControllerName()
          The name of the controller that the URL mapping maps to
 java.lang.String getId()
          The id part of the URL mapping if any
 java.util.Map getParameters()
          The parameters that were extracted from the URI that was matched
 java.lang.String getURI()
          The URI to map to.
 java.lang.String getViewName()
          The name of the view that the URL mappping maps to
 boolean isParsingRequest()
          Returns true of the request body should be parsed.
 

Method Detail

getURI

java.lang.String getURI()
The URI to map to. Note when the URI is specified it overrides any explicit controller/action/id mappings. In other words you can either specify the URI or the controller/action/id, but not both

Returns:
The URI to use

getControllerName

java.lang.String getControllerName()
The name of the controller that the URL mapping maps to

Returns:
The name of the controller

getActionName

java.lang.String getActionName()
The name of the action that the URL mappping maps to

Returns:
The name of the action or null if not known

getViewName

java.lang.String getViewName()
The name of the view that the URL mappping maps to

Returns:
The name of the view or null if not known

getId

java.lang.String getId()
The id part of the URL mapping if any

Returns:
The id or null

getParameters

java.util.Map getParameters()
The parameters that were extracted from the URI that was matched

Returns:
A Map of parameters

configure

void configure(GrailsWebRequest webRequest)
Configure this UrlMappingInfo the for the given GrailsWebRequest

Parameters:
webRequest - The GrailsWebRequest instance

isParsingRequest

boolean isParsingRequest()
Returns true of the request body should be parsed. This typically happens in the case of REST requests that parse JSON or XML packets

Returns:
True if it is