public interface LinkGenerator
Generates links for a Grails application based on URL mapping rules and/or base context settings.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.String |
getContextPath()Obtains the context path from which this link generator is operating. |
|
public java.lang.String |
getServerBaseURL()The base URL of the server used for creating absolute links. |
|
public java.lang.String |
link(java.util.Map params)Generates a link to a controller, action or URI for the given named parameters. |
|
public 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. |
|
public java.lang.String |
resource(java.util.Map params)Generates a link to a static resource for the given named parameters. |
Obtains the context path from which this link generator is operating.
The base URL of the server used for creating absolute links.
Generates a link to a controller, action or URI for the given named parameters. Possible named parameters include:
params - The named parametersGenerates a link to a controller, action or URI for the given named parameters. Possible named parameters include:
params - The named parametersencoding - The character encoding to useGenerates a link to a static resource for the given named parameters. Possible named parameters include:
params - The named parameters