org.codehaus.groovy.grails.web.pages
Class DefaultGroovyPagesUriService
java.lang.Object
org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport
org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService
- All Implemented Interfaces:
- GroovyPagesUriService
public class DefaultGroovyPagesUriService
- extends GroovyPagesUriSupport
- implements GroovyPagesUriService
Provides services for resolving URIs
caches lookups in an internal ConcurrentHashMap cache
- Author:
- Lari Hotari , Sagire Software Oy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
templateURICache
ConcurrentHashMap<org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.TupleStringKey,String> templateURICache
deployedViewURICache
ConcurrentHashMap<org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.TupleStringKey,String> deployedViewURICache
controllerNameCache
ConcurrentHashMap<org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.ControllerObjectKey,String> controllerNameCache
noSuffixViewURICache
ConcurrentHashMap<org.codehaus.groovy.grails.web.pages.DefaultGroovyPagesUriService.TupleStringKey,String> noSuffixViewURICache
DefaultGroovyPagesUriService
public DefaultGroovyPagesUriService()
getTemplateURI
public String getTemplateURI(String controllerName,
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 nametemplateName
- The template name
- Returns:
- The template URI
getDeployedViewURI
public String getDeployedViewURI(String controllerName,
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 controllerviewName
- The name of the view
- Returns:
- The view URI
getLogicalControllerName
public String getLogicalControllerName(groovy.lang.GroovyObject controller)
- Overrides:
getLogicalControllerName
in class GroovyPagesUriSupport
getNoSuffixViewURI
public String getNoSuffixViewURI(groovy.lang.GroovyObject controller,
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 controllerviewName
- The name of the view
- Returns:
- The view URI
getNoSuffixViewURI
public String getNoSuffixViewURI(String controllerName,
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 controllerviewName
- The name of the view
- Returns:
- The view URI
getTemplateURI
public String getTemplateURI(groovy.lang.GroovyObject controller,
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 instancetemplateName
- The template name
- Returns:
- The template URI
clear
public void clear()
- Specified by:
clear
in interface GroovyPagesUriService
Copyright (c) 2005-2009 The Grails project