org.codehaus.groovy.grails.web.mapping
Class AbstractUrlMapping
java.lang.Object
org.codehaus.groovy.grails.web.mapping.AbstractUrlMapping
- All Implemented Interfaces:
- Comparable, UrlCreator, UrlMapping
- Direct Known Subclasses:
- RegexUrlMapping
public abstract class AbstractUrlMapping
- extends Object
- implements UrlMapping
Abstract UrlMapping implementation that provides common basic functionality
- Since:
- 0.5.5
Created: May 30, 2007
Time: 8:25:36 AM
- Author:
- Graeme Rocher
|
Method Summary |
Object |
getActionName()
Retrieves the action name which is either a groovy.lang.Closure that evaluates the action
name at runtime or a java.lang.String that represents the action name |
ConstrainedProperty[] |
getConstraints()
The constraints the apply to this UrlMapping. |
Object |
getControllerName()
Retrieves the controller name which is either a groovy.lang.Closure that evaluates the controller
name at runtime or a java.lang.String that represents the controller name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constraints
protected final ConstrainedProperty[] constraints
controllerName
protected Object controllerName
actionName
protected Object actionName
AbstractUrlMapping
public AbstractUrlMapping(Object controllerName,
Object actionName,
ConstrainedProperty[] constraints)
- Base constructor required to construct a UrlMapping instance
- Parameters:
controllerName - The name of the controlleractionName - The name of the actionconstraints - Any constraints that apply to the mapping
getConstraints
public ConstrainedProperty[] getConstraints()
- Description copied from interface:
UrlMapping
The constraints the apply to this UrlMapping. Each constraint maps to a GString token in a
URL mapping in order. For example consider the URL:
/blog/$author/$title/$year?/$month?/$day?
This results in 5 ConstrainedProperty instances called author, title, year, month and day
- Specified by:
getConstraints in interface UrlMapping
- Returns:
- See Also:
UrlMapping.getConstraints()
getControllerName
public Object getControllerName()
- Description copied from interface:
UrlMapping
- Retrieves the controller name which is either a groovy.lang.Closure that evaluates the controller
name at runtime or a java.lang.String that represents the controller name
- Specified by:
getControllerName in interface UrlMapping
- Returns:
- The controller name as a Closure or String
- See Also:
UrlMapping.getControllerName()
getActionName
public Object getActionName()
- Description copied from interface:
UrlMapping
- Retrieves the action name which is either a groovy.lang.Closure that evaluates the action
name at runtime or a java.lang.String that represents the action name
- Specified by:
getActionName in interface UrlMapping
- Returns:
- The action name as a Closure or String
- See Also:
UrlMapping.getActionName()
Copyright (c) 2005-2006 The Grails project