Package org.grails.web.pages
Class DefaultGroovyPagesUriService
- java.lang.Object
-
- org.grails.web.pages.GroovyPagesUriSupport
-
- org.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.grails.web.pages.GroovyPagesUriSupport
EXTENSION, PATH_TO_VIEWS, RELATIVE_STRING, SUFFIX
-
Fields inherited from interface grails.web.pages.GroovyPagesUriService
BEAN_ID
-
-
Constructor Summary
Constructors Constructor Description DefaultGroovyPagesUriService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.lang.StringgetDeployedViewURI(java.lang.String controllerName, java.lang.String viewName)Obtains a view URI when deployed within the /WEB-INF/grails-app/views contextjava.lang.StringgetLogicalControllerName(groovy.lang.GroovyObject controller)java.lang.StringgetNoSuffixViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName)Obtains a view URI of the given controller and view name without the suffixjava.lang.StringgetNoSuffixViewURI(java.lang.String controllerName, java.lang.String viewName)Obtains a view URI of the given controller name and view name without the suffixjava.lang.StringgetTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName)Obtains a template URI for the given controller instance and template namejava.lang.StringgetTemplateURI(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.grails.web.pages.GroovyPagesUriSupport
getAbsoluteTemplateURI, getAbsoluteViewURI, getDeployedAbsoluteViewURI, getTemplateURI, getTemplateURI, getViewURI, getViewURI
-
-
-
-
Method Detail
-
getTemplateURI
public java.lang.String getTemplateURI(java.lang.String controllerName, java.lang.String templateName)Description copied from class:GroovyPagesUriSupportObtains the URI to a template using the controller name and template name- Specified by:
getTemplateURIin interfaceGroovyPagesUriService- Overrides:
getTemplateURIin classGroovyPagesUriSupport- 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:GroovyPagesUriSupportObtains a view URI when deployed within the /WEB-INF/grails-app/views context- Specified by:
getDeployedViewURIin interfaceGroovyPagesUriService- Overrides:
getDeployedViewURIin classGroovyPagesUriSupport- 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:
getLogicalControllerNamein classGroovyPagesUriSupport
-
getNoSuffixViewURI
public java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName)Description copied from class:GroovyPagesUriSupportObtains a view URI of the given controller and view name without the suffix- Specified by:
getNoSuffixViewURIin interfaceGroovyPagesUriService- Overrides:
getNoSuffixViewURIin classGroovyPagesUriSupport- 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:GroovyPagesUriSupportObtains a view URI of the given controller name and view name without the suffix- Specified by:
getNoSuffixViewURIin interfaceGroovyPagesUriService- Overrides:
getNoSuffixViewURIin classGroovyPagesUriSupport- 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:GroovyPagesUriSupportObtains a template URI for the given controller instance and template name- Specified by:
getTemplateURIin interfaceGroovyPagesUriService- Overrides:
getTemplateURIin classGroovyPagesUriSupport- Parameters:
controller- The controller instancetemplateName- The template name- Returns:
- The template URI
-
clear
public void clear()
- Specified by:
clearin interfaceGroovyPagesUriService- Overrides:
clearin classGroovyPagesUriSupport
-
-