|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.pages.GroovyPagesUriSupport
public class GroovyPagesUriSupport extends java.lang.Object
Methods to establish template names, paths and so on.
Field Summary | |
---|---|
static java.lang.String |
PATH_TO_VIEWS
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static final java.lang.String PATH_TO_VIEWS
Method Detail |
---|
public void clear()
public java.lang.String getAbsoluteTemplateURI(java.lang.String templateName)
templateName
- The template name normally beginning with /
public java.lang.String getAbsoluteViewURI(java.lang.String viewName)
viewName
- The name of the view
public java.lang.String getDeployedAbsoluteViewURI(java.lang.String viewName)
viewName
- The name of the view
public java.lang.String getDeployedViewURI(java.lang.String controllerName, java.lang.String viewName)
controllerName
- The name of the controllerviewName
- The name of the view
public java.lang.String getLogicalControllerName(groovy.lang.GroovyObject controller)
public java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName)
controller
- The name of the controllerviewName
- The name of the view
public java.lang.String getNoSuffixViewURI(java.lang.String controllerName, java.lang.String viewName)
controllerName
- The name of the controllerviewName
- The name of the view
public java.lang.String getTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName)
controller
- The controller instancetemplateName
- The template name
public java.lang.String getTemplateURI(java.lang.String controllerName, java.lang.String templateName)
controllerName
- The controller nametemplateName
- The template name
public java.lang.String getViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName)
controller
- The name of the controllerviewName
- The name of the view
public java.lang.String getViewURI(java.lang.String controllerName, java.lang.String viewName)
controllerName
- The name of the controllerviewName
- The name of the view
Groovy Documentation