Groovy Documentation

org.grails.plugin.resource.util
[Groovy] Class HalfBakedLegacyLinkGenerator

java.lang.Object
  org.grails.plugin.resource.util.HalfBakedLegacyLinkGenerator
All Implemented Interfaces:
org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware

class HalfBakedLegacyLinkGenerator

This is a horrible hack to replicate what we need from g.resource() for pre-Grails 1.4 apps where in Grails 1.4 we now have the wonderful grailsLinkGenerator bean NOTE this is a lame implementation that NEVER adds servletContextPath!


Property Summary
org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication

java.lang.Object pluginManager

 
Constructor Summary
HalfBakedLegacyLinkGenerator()

 
Method Summary
java.lang.Object getResourceUrl(java.util.Map args)

Resolve the normal link/resource attributes map (plugin, dir, file) to a link relative to the host (not app context) This is basically g.resource copied and pasted

java.lang.String makeServerURL()

Copied from ApplicationTagLib

java.lang.String resource(java.util.Map args)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

grailsApplication

org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication


pluginManager

java.lang.Object pluginManager


 
Constructor Detail

HalfBakedLegacyLinkGenerator

HalfBakedLegacyLinkGenerator()


 
Method Detail

getResourceUrl

java.lang.Object getResourceUrl(java.util.Map args)
Resolve the normal link/resource attributes map (plugin, dir, file) to a link relative to the host (not app context) This is basically g.resource copied and pasted


makeServerURL

java.lang.String makeServerURL()
Copied from ApplicationTagLib


resource

java.lang.String resource(java.util.Map args)


 

Groovy Documentation