org.codehaus.groovy.grails.web.mapping
Class DefaultUrlMappingInfo

java.lang.Object
  extended by org.codehaus.groovy.grails.web.mapping.DefaultUrlMappingInfo
All Implemented Interfaces:
UrlMappingInfo

public class DefaultUrlMappingInfo
extends java.lang.Object
implements UrlMappingInfo

A Class that implements the UrlMappingInfo interface and holds information established from a matched URL

Since:
0.5

Created: Mar 1, 2007 Time: 7:19:35 AM

Author:
Graeme Rocher

Constructor Summary
DefaultUrlMappingInfo(java.lang.Object viewName, java.util.Map params, UrlMappingData urlData)
           
DefaultUrlMappingInfo(java.lang.Object controllerName, java.lang.Object actionName, java.lang.Object viewName, java.util.Map params, UrlMappingData urlData)
           
 
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 getViewName()
          The name of the view that the URL mappping maps to
protected  void populateParamsForMapping(java.util.Map dispatchParams)
          Populates request parameters for the given UrlMappingInfo instance using the GrailsWebRequest
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultUrlMappingInfo

public DefaultUrlMappingInfo(java.lang.Object controllerName,
                             java.lang.Object actionName,
                             java.lang.Object viewName,
                             java.util.Map params,
                             UrlMappingData urlData)

DefaultUrlMappingInfo

public DefaultUrlMappingInfo(java.lang.Object viewName,
                             java.util.Map params,
                             UrlMappingData urlData)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

populateParamsForMapping

protected void populateParamsForMapping(java.util.Map dispatchParams)
Populates request parameters for the given UrlMappingInfo instance using the GrailsWebRequest

Parameters:
dispatchParams - The Map instance
See Also:
GrailsWebRequest

getParameters

public java.util.Map getParameters()
Description copied from interface: UrlMappingInfo
The parameters that were extracted from the URI that was matched

Specified by:
getParameters in interface UrlMappingInfo
Returns:
A Map of parameters

configure

public void configure(GrailsWebRequest webRequest)
Description copied from interface: UrlMappingInfo
Configure this UrlMappingInfo the for the given GrailsWebRequest

Specified by:
configure in interface UrlMappingInfo
Parameters:
webRequest - The GrailsWebRequest instance

getControllerName

public java.lang.String getControllerName()
Description copied from interface: UrlMappingInfo
The name of the controller that the URL mapping maps to

Specified by:
getControllerName in interface UrlMappingInfo
Returns:
The name of the controller

getActionName

public java.lang.String getActionName()
Description copied from interface: UrlMappingInfo
The name of the action that the URL mappping maps to

Specified by:
getActionName in interface UrlMappingInfo
Returns:
The name of the action or null if not known

getViewName

public java.lang.String getViewName()
Description copied from interface: UrlMappingInfo
The name of the view that the URL mappping maps to

Specified by:
getViewName in interface UrlMappingInfo
Returns:
The name of the view or null if not known

getId

public java.lang.String getId()
Description copied from interface: UrlMappingInfo
The id part of the URL mapping if any

Specified by:
getId in interface UrlMappingInfo
Returns:
The id or null


Copyright (c) 2005-2006 The Grails project