@CompileStatic @Slf4j class DefaultLinkGenerator extends java.lang.Object implements LinkGenerator, PluginManagerAware
A link generating service for applications to use when generating links.
| Type | Name and description |
|---|---|
java.lang.String |
configuredServerBaseURL |
java.lang.String |
contextPath |
GrailsApplication |
grailsApplication |
UrlConverter |
grailsUrlConverter |
MappingContext |
mappingContext |
GrailsPluginManager |
pluginManager |
GrailsRequestStateLookupStrategy |
requestStateLookupStrategy |
java.lang.String |
resourcePath |
java.lang.String |
resourcePattern |
UrlMappingsHolder |
urlMappingsHolder |
| Constructor and description |
|---|
DefaultLinkGenerator(java.lang.String serverBaseURL, java.lang.String contextPath) |
DefaultLinkGenerator(java.lang.String serverBaseURL) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getContextPath() |
|
java.lang.String |
getDefaultNamespace(java.lang.String controller, java.lang.String pluginName){@inheritDoc} |
|
protected java.lang.String |
getResourceId(java.lang.Object resourceAttribute) |
|
java.lang.String |
getServerBaseURL() |
|
void |
initializeResourcePath() |
|
protected boolean |
isAbsolute(java.util.Map attrs) |
|
java.lang.String |
link(java.util.Map attrs, java.lang.String encoding){@inheritDoc} |
|
java.lang.String |
makeServerURL()Get the declared URL of the server from config, or guess at localhost for non-production. |
|
void |
resetControllerNamespaceCache()Clears the cached index of controllers, and with it the ambiguities reported against them, so it is rebuilt on next use. |
|
java.lang.String |
resource(java.util.Map attrs){
|
|
void |
setPluginManager(GrailsPluginManager pluginManager) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
{@inheritDoc}
{@inheritDoc}
Get the declared URL of the server from config, or guess at localhost for non-production.
Clears the cached index of controllers, and with it the ambiguities reported against them, so it is rebuilt on next use. The index is also rebuilt whenever the registered controllers change, as during a development-mode reload.
{