org.codehaus.groovy.grails.web.pages
Class DefaultGroovyPagesUriService

java.lang.Object
  extended by org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport
      extended by org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService
All Implemented Interfaces:
GroovyPagesUriService

public class DefaultGroovyPagesUriService
extends GroovyPagesUriSupport

Provides services for resolving URIs. Caches lookups in an internal ConcurrentMap cache.


Field Summary
 
Fields inherited from class org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport
PATH_TO_VIEWS
 
Fields inherited from interface org.codehaus.groovy.grails.web.pages.GroovyPagesUriService
BEAN_ID
 
Constructor Summary
DefaultGroovyPagesUriService()
           
 
Method Summary
 void clear()
           
 java.lang.String getDeployedViewURI(java.lang.String controllerName, java.lang.String viewName)
          Obtains a view URI when deployed within the /WEB-INF/grails-app/views context
 java.lang.String getLogicalControllerName(groovy.lang.GroovyObject controller)
           
 java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName)
          Obtains a view URI of the given controller and view name without the suffix
 java.lang.String getNoSuffixViewURI(java.lang.String controllerName, java.lang.String viewName)
          Obtains a view URI of the given controller name and view name without the suffix
 java.lang.String getTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName)
          Obtains a template URI for the given controller instance and template name
 java.lang.String getTemplateURI(java.lang.String controllerName, java.lang.String templateName)
          Obtains the URI to a template using the controller name and template name
 
Methods inherited from class org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport
getAbsoluteTemplateURI, getAbsoluteViewURI, getDeployedAbsoluteViewURI, getViewURI, getViewURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGroovyPagesUriService

public DefaultGroovyPagesUriService()
Method Detail

getTemplateURI

public java.lang.String getTemplateURI(java.lang.String controllerName,
                                       java.lang.String templateName)
Description copied from class: GroovyPagesUriSupport
Obtains the URI to a template using the controller name and template name

Specified by:
getTemplateURI in interface GroovyPagesUriService
Overrides:
getTemplateURI in class GroovyPagesUriSupport
Parameters:
controllerName - The controller name
templateName - The template name
Returns:
The template URI

getDeployedViewURI

public java.lang.String getDeployedViewURI(java.lang.String controllerName,
                                           java.lang.String viewName)
Description copied from class: GroovyPagesUriSupport
Obtains a view URI when deployed within the /WEB-INF/grails-app/views context

Specified by:
getDeployedViewURI in interface GroovyPagesUriService
Overrides:
getDeployedViewURI in class GroovyPagesUriSupport
Parameters:
controllerName - The name of the controller
viewName - The name of the view
Returns:
The view URI

getLogicalControllerName

public java.lang.String getLogicalControllerName(groovy.lang.GroovyObject controller)
Overrides:
getLogicalControllerName in class GroovyPagesUriSupport

getNoSuffixViewURI

public java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller,
                                           java.lang.String viewName)
Description copied from class: GroovyPagesUriSupport
Obtains a view URI of the given controller and view name without the suffix

Specified by:
getNoSuffixViewURI in interface GroovyPagesUriService
Overrides:
getNoSuffixViewURI in class GroovyPagesUriSupport
Parameters:
controller - The name of the controller
viewName - The name of the view
Returns:
The view URI

getNoSuffixViewURI

public java.lang.String getNoSuffixViewURI(java.lang.String controllerName,
                                           java.lang.String viewName)
Description copied from class: GroovyPagesUriSupport
Obtains a view URI of the given controller name and view name without the suffix

Specified by:
getNoSuffixViewURI in interface GroovyPagesUriService
Overrides:
getNoSuffixViewURI in class GroovyPagesUriSupport
Parameters:
controllerName - The name of the controller
viewName - The name of the view
Returns:
The view URI

getTemplateURI

public java.lang.String getTemplateURI(groovy.lang.GroovyObject controller,
                                       java.lang.String templateName)
Description copied from class: GroovyPagesUriSupport
Obtains a template URI for the given controller instance and template name

Specified by:
getTemplateURI in interface GroovyPagesUriService
Overrides:
getTemplateURI in class GroovyPagesUriSupport
Parameters:
controller - The controller instance
templateName - The template name
Returns:
The template URI

clear

public void clear()
Specified by:
clear in interface GroovyPagesUriService
Overrides:
clear in class GroovyPagesUriSupport