|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.mapping.DefaultUrlCreator
public class DefaultUrlCreator
The default implementation of the UrlCreator interface that constructs URLs in Grails default pattern of /controllerName/actionName/id
Field Summary | |
---|---|
static String |
ARGUMENT_ID
|
Constructor Summary | |
---|---|
DefaultUrlCreator(String controller,
String action)
|
Method Summary | |
---|---|
String |
createRelativeURL(String controller,
String action,
Map parameterValues,
String encoding)
Creates a URL for the given parameters values, controller and action names without the context path information |
String |
createRelativeURL(String controller,
String action,
Map parameterValues,
String encoding,
String fragment)
Creates a URL for the given parameters values, controller and action names without the context path information |
String |
createURL(Map parameterValues,
String encoding)
Creates a URL for the given parameter values |
String |
createURL(Map parameterValues,
String encoding,
String fragment)
Creates a URL for the given parameter values |
String |
createURL(String controller,
String action,
Map parameterValues,
String encoding)
Creates a URL for the given parameters values, controller and action names |
String |
createURL(String controller,
String action,
Map parameterValues,
String encoding,
String fragment)
Creates a URL for the given parameters values, controller and action names |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ARGUMENT_ID
Constructor Detail |
---|
public DefaultUrlCreator(String controller, String action)
Method Detail |
---|
public String createURL(Map parameterValues, String encoding)
UrlCreator
createURL
in interface UrlCreator
parameterValues
- The parameter valuesencoding
- The encoding to use for parameters
public String createURL(Map parameterValues, String encoding, String fragment)
UrlCreator
createURL
in interface UrlCreator
parameterValues
- The parameter valuesencoding
- The encoding to use for parametersfragment
- The URL fragment to be appended to the URL following a #
public String createURL(String controller, String action, Map parameterValues, String encoding)
UrlCreator
createURL
in interface UrlCreator
controller
- The controller nameaction
- The action nameparameterValues
- The parameter valuesencoding
- The encoding to use for parameters
public String createRelativeURL(String controller, String action, Map parameterValues, String encoding)
UrlCreator
createRelativeURL
in interface UrlCreator
controller
- The controller nameaction
- The action nameparameterValues
- The parameter valuesencoding
- The encoding to use for parameters
public String createRelativeURL(String controller, String action, Map parameterValues, String encoding, String fragment)
UrlCreator
createRelativeURL
in interface UrlCreator
controller
- The controller nameaction
- The action nameparameterValues
- The parameter valuesencoding
- The encoding to use for parametersfragment
- The fragment to append to the end
public String createURL(String controller, String action, Map parameterValues, String encoding, String fragment)
UrlCreator
createURL
in interface UrlCreator
controller
- The controller nameaction
- The action nameparameterValues
- The parameter valuesencoding
- The encoding to use for parametersfragment
- The URL fragment to be appended to the URL following a #
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |