org.codehaus.groovy.grails.web.mapping
Class DefaultUrlCreator
java.lang.Object
org.codehaus.groovy.grails.web.mapping.DefaultUrlCreator
- All Implemented Interfaces:
- UrlCreator
public class DefaultUrlCreator
- extends Object
- implements UrlCreator
The default implementation of the UrlCreator interface that constructs URLs in Grails
default pattern of /controllerName/actionName/id
- Since:
- 0.5.5
Created: May 30, 2007
Time: 8:37:15 AM
- Author:
- Graeme Rocher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ARGUMENT_ID
public static final String ARGUMENT_ID
- See Also:
- Constant Field Values
DefaultUrlCreator
public DefaultUrlCreator(String controller,
String action)
createURL
public String createURL(Map parameterValues,
String encoding)
- Description copied from interface:
UrlCreator
- Creates a URL for the given parameter values
- Specified by:
createURL in interface UrlCreator
- Parameters:
parameterValues - The parameter valuesencoding - The encoding to use for parameters
- Returns:
- Returns the created URL for the given parameter values
createURL
public String createURL(String controller,
String action,
Map parameterValues,
String encoding)
- Description copied from interface:
UrlCreator
- Creates a URL for the given parameters values, controller and action names
- Specified by:
createURL in interface UrlCreator
- Parameters:
controller - The controller nameaction - The action nameparameterValues - The parameter valuesencoding - The encoding to use for parameters
- Returns:
- The created URL for the given arguments
Copyright (c) 2005-2006 The Grails project