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 String |
getContextPath() Obtains the context path from which this link generator is operating. |
|
public String |
getServerBaseURL() The base URL of the server used for creating absolute links. |
|
public String |
link(Map params) Generates a link to a controller, action or URI for the given named parameters. |
|
public String |
link(Map params, String encoding) Generates a link to a controller, action or URI for the given named parameters. |
|
public String |
resource(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