@CompileStatic @Slf4j class DefaultLinkGenerator extends Object implements LinkGenerator, PluginManagerAware
A link generating service for applications to use when generating links.
| Constructor and description |
|---|
DefaultLinkGenerator(String serverBaseURL, String contextPath) |
DefaultLinkGenerator(String serverBaseURL) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
getContextPath() |
|
protected String |
getResourceId(Object resourceAttribute) |
|
String |
getServerBaseURL() |
|
void |
initializeResourcePath() |
|
protected boolean |
isAbsolute(Map attrs) |
|
String |
link(Map attrs, String encoding){@inheritDoc} |
|
String |
makeServerURL()Get the declared URL of the server from config, or guess at localhost for non-production. |
|
String |
resource(Map attrs){
|
|
void |
setPluginManager(GrailsPluginManager pluginManager) |
Get the declared URL of the server from config, or guess at localhost for non-production.