Package org.grails.web.mapping
Class AbstractUrlMappingInfo
- java.lang.Object
-
- org.grails.web.mapping.AbstractUrlMappingInfo
-
- All Implemented Interfaces:
UrlMappingInfo
- Direct Known Subclasses:
DefaultUrlMappingInfo
public abstract class AbstractUrlMappingInfo extends java.lang.Object implements UrlMappingInfo
Abstract super class providing pass functionality for configuring a UrlMappingInfo.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description AbstractUrlMappingInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.grails.web.servlet.mvc.GrailsWebRequest webRequest)Configure this UrlMappingInfo the for the given GrailsWebRequestprotected java.lang.StringevaluateNameForValue(java.lang.Object value)protected java.lang.StringevaluateNameForValue(java.lang.Object value, org.grails.web.servlet.mvc.GrailsWebRequest webRequest)java.util.Map<java.lang.String,java.lang.Object>getParams()java.lang.ObjectgetRedirectInfo()The redirect information should be a String or a Map.protected voidpopulateParamsForMapping(org.grails.web.servlet.mvc.GrailsWebRequest webRequest)Populates request parameters for the given UrlMappingInfo instance using the GrailsWebRequestvoidsetParams(java.util.Map newParams)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface grails.web.mapping.UrlMappingInfo
getActionName, getControllerName, getHttpMethod, getId, getNamespace, getParameters, getPluginName, getURI, getUrlData, getVersion, getViewName, isParsingRequest
-
-
-
-
Method Detail
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()
-
setParams
public void setParams(java.util.Map newParams)
-
configure
public void configure(org.grails.web.servlet.mvc.GrailsWebRequest webRequest)
Description copied from interface:UrlMappingInfoConfigure this UrlMappingInfo the for the given GrailsWebRequest- Specified by:
configurein interfaceUrlMappingInfo- Parameters:
webRequest- The GrailsWebRequest instance
-
populateParamsForMapping
protected void populateParamsForMapping(org.grails.web.servlet.mvc.GrailsWebRequest webRequest)
Populates request parameters for the given UrlMappingInfo instance using the GrailsWebRequest- Parameters:
webRequest- The Map instance- See Also:
GrailsWebRequest
-
evaluateNameForValue
protected java.lang.String evaluateNameForValue(java.lang.Object value)
-
evaluateNameForValue
protected java.lang.String evaluateNameForValue(java.lang.Object value, org.grails.web.servlet.mvc.GrailsWebRequest webRequest)
-
getRedirectInfo
public java.lang.Object getRedirectInfo()
The redirect information should be a String or a Map. If it is a String that string is the URI to redirect to. If it is a Map, that Map may contain any entries supported as arguments to the dynamic redirect(Map) method on a controller.- Specified by:
getRedirectInfoin interfaceUrlMappingInfo- Returns:
- redirect information for this url mapping, null if no redirect is specified
-
-