public class GroovyPagesUriSupport extends java.lang.Object implements GroovyPagesUriService
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EXTENSION |
static java.lang.String |
PATH_TO_VIEWS |
protected static java.lang.String |
SUFFIX |
BEAN_ID| Constructor and Description |
|---|
GroovyPagesUriSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.lang.String |
getAbsoluteTemplateURI(java.lang.String templateName)
Used to resolve template names that are not relative to a controller.
|
java.lang.String |
getAbsoluteViewURI(java.lang.String viewName)
Obtains a view URI that is not relative to any given controller
|
java.lang.String |
getDeployedAbsoluteViewURI(java.lang.String viewName)
Obtains a view URI when deployed within the /WEB-INF/grails-app/views context
|
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
|
java.lang.String |
getViewURI(groovy.lang.GroovyObject controller,
java.lang.String viewName)
Obtains a view URI of the given controller and view name
|
java.lang.String |
getViewURI(java.lang.String controllerName,
java.lang.String viewName)
Obtains a view URI of the given controller name and view name
|
public static final java.lang.String PATH_TO_VIEWS
protected static final java.lang.String EXTENSION
protected static final java.lang.String SUFFIX
public java.lang.String getTemplateURI(groovy.lang.GroovyObject controller,
java.lang.String templateName)
getTemplateURI in interface GroovyPagesUriServicecontroller - The controller instancetemplateName - The template namepublic void clear()
clear in interface GroovyPagesUriServicepublic java.lang.String getViewURI(groovy.lang.GroovyObject controller,
java.lang.String viewName)
controller - The name of the controllerviewName - The name of the viewpublic java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller,
java.lang.String viewName)
getNoSuffixViewURI in interface GroovyPagesUriServicecontroller - The name of the controllerviewName - The name of the viewpublic java.lang.String getLogicalControllerName(groovy.lang.GroovyObject controller)
public java.lang.String getTemplateURI(java.lang.String controllerName,
java.lang.String templateName)
getTemplateURI in interface GroovyPagesUriServicecontrollerName - The controller nametemplateName - The template namepublic java.lang.String getAbsoluteTemplateURI(java.lang.String templateName)
getAbsoluteTemplateURI in interface GroovyPagesUriServicetemplateName - The template name normally beginning with /public java.lang.String getViewURI(java.lang.String controllerName,
java.lang.String viewName)
getViewURI in interface GroovyPagesUriServicecontrollerName - The name of the controllerviewName - The name of the viewpublic java.lang.String getAbsoluteViewURI(java.lang.String viewName)
getAbsoluteViewURI in interface GroovyPagesUriServiceviewName - The name of the viewpublic java.lang.String getNoSuffixViewURI(java.lang.String controllerName,
java.lang.String viewName)
getNoSuffixViewURI in interface GroovyPagesUriServicecontrollerName - The name of the controllerviewName - The name of the viewpublic java.lang.String getDeployedViewURI(java.lang.String controllerName,
java.lang.String viewName)
getDeployedViewURI in interface GroovyPagesUriServicecontrollerName - The name of the controllerviewName - The name of the viewpublic java.lang.String getDeployedAbsoluteViewURI(java.lang.String viewName)
getDeployedAbsoluteViewURI in interface GroovyPagesUriServiceviewName - The name of the view