|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.groovy.grails.web.mapping.AbstractUrlMapping
public abstract class AbstractUrlMapping
Abstract UrlMapping implementation that provides common basic functionality
| Field Summary | |
|---|---|
protected Object |
actionName
|
protected ConstrainedProperty[] |
constraints
|
protected Object |
controllerName
|
protected Map |
parameterValues
|
protected Object |
viewName
|
| Fields inherited from interface org.codehaus.groovy.grails.web.mapping.UrlMapping |
|---|
ACTION, CONTROLLER |
| Constructor Summary | |
|---|---|
protected |
AbstractUrlMapping(Object viewName,
ConstrainedProperty[] constraints)
|
|
AbstractUrlMapping(Object controllerName,
Object actionName,
Object viewName,
ConstrainedProperty[] constraints)
Base constructor required to construct a UrlMapping instance |
| 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 |
Object |
getViewName()
Returns the name of the view to map to |
void |
setParameterValues(Map parameterValues)
Sets any parameter values that should be populated into the request |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.groovy.grails.web.mapping.UrlMapping |
|---|
getUrlData, match |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.codehaus.groovy.grails.web.mapping.UrlCreator |
|---|
createRelativeURL, createURL, createURL, createURL, createURL |
| Field Detail |
|---|
protected final ConstrainedProperty[] constraints
protected Object controllerName
protected Object actionName
protected Object viewName
protected Map parameterValues
| Constructor Detail |
|---|
public AbstractUrlMapping(Object controllerName,
Object actionName,
Object viewName,
ConstrainedProperty[] constraints)
controllerName - The name of the controlleractionName - The name of the actionconstraints - Any constraints that apply to the mapping
protected AbstractUrlMapping(Object viewName,
ConstrainedProperty[] constraints)
| Method Detail |
|---|
public ConstrainedProperty[] getConstraints()
UrlMappingThe 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
getConstraints in interface UrlMappingUrlMapping.getConstraints()public Object getControllerName()
UrlMapping
getControllerName in interface UrlMappingClosure or StringUrlMapping.getControllerName()public Object getActionName()
UrlMapping
getActionName in interface UrlMappingClosure or StringUrlMapping.getActionName()public Object getViewName()
UrlMapping
getViewName in interface UrlMappingUrlMapping.getViewName()public void setParameterValues(Map parameterValues)
UrlMapping
setParameterValues in interface UrlMappingparameterValues - The parameter values to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||