|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface LinkGenerator
Generates links for a Grails application based on URL mapping rules and/or base context settings.
Field Summary | |
---|---|
java.lang.String |
ATTRIBUTE_ABSOLUTE
|
java.lang.String |
ATTRIBUTE_ACTION
|
java.lang.String |
ATTRIBUTE_BASE
|
java.lang.String |
ATTRIBUTE_CONTEXT_PATH
|
java.lang.String |
ATTRIBUTE_CONTROLLER
|
java.lang.String |
ATTRIBUTE_ELEMENT_ID
|
java.lang.String |
ATTRIBUTE_EVENT
|
java.lang.String |
ATTRIBUTE_FRAGMENT
|
java.lang.String |
ATTRIBUTE_ID
|
java.lang.String |
ATTRIBUTE_MAPPING
|
java.lang.String |
ATTRIBUTE_PARAMS
|
java.lang.String |
ATTRIBUTE_URI
|
java.lang.String |
ATTRIBUTE_URL
|
java.util.Set |
LINK_ATTRIBUTES
|
Method Summary | |
---|---|
java.lang.String
|
getContextPath()
Obtains the context path from which this link generator is operating. |
java.lang.String
|
getServerBaseURL()
The base URL of the server used for creating absolute links. |
java.lang.String
|
link(java.util.Map params)
Generates a link to a controller, action or URI for the given named parameters. |
java.lang.String
|
link(java.util.Map params, java.lang.String encoding)
Generates a link to a controller, action or URI for the given named parameters. |
java.lang.String
|
resource(java.util.Map params)
Generates a link to a static resource for the given named parameters. |
Field Detail |
---|
public java.lang.String ATTRIBUTE_ABSOLUTE
public java.lang.String ATTRIBUTE_ACTION
public java.lang.String ATTRIBUTE_BASE
public java.lang.String ATTRIBUTE_CONTEXT_PATH
public java.lang.String ATTRIBUTE_CONTROLLER
public java.lang.String ATTRIBUTE_ELEMENT_ID
public java.lang.String ATTRIBUTE_EVENT
public java.lang.String ATTRIBUTE_FRAGMENT
public java.lang.String ATTRIBUTE_ID
public java.lang.String ATTRIBUTE_MAPPING
public java.lang.String ATTRIBUTE_PARAMS
public java.lang.String ATTRIBUTE_URI
public java.lang.String ATTRIBUTE_URL
public java.util.Set LINK_ATTRIBUTES
Method Detail |
---|
public java.lang.String getContextPath()
public java.lang.String getServerBaseURL()
public java.lang.String link(@SuppressWarnings("rawtypes") java.util.Map params)
params
- The named parameters
public java.lang.String link(@SuppressWarnings("rawtypes") java.util.Map params, java.lang.String encoding)
params
- The named parametersencoding
- The character encoding to use
public java.lang.String resource(@SuppressWarnings("rawtypes") java.util.Map params)
params
- The named parameters
Groovy Documentation