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 ConcurrentMap cache.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultGroovyPagesUriService
public DefaultGroovyPagesUriService()
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 nametemplateName - 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 controllerviewName - 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 controllerviewName - 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 controllerviewName - 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 instancetemplateName - The template name
- Returns:
- The template URI
clear
public void clear()
- Specified by:
clear in interface GroovyPagesUriService- Overrides:
clear in class GroovyPagesUriSupport