public class GroovyPagesUriSupport extends Object implements GroovyPagesUriService
Methods to establish template names, paths and so on.
| Modifiers | Name | Description |
|---|---|---|
protected static String |
EXTENSION |
|
static String |
PATH_TO_VIEWS |
|
static String |
RELATIVE_STRING |
|
protected static String |
SUFFIX |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
clear() |
|
public String |
getAbsoluteTemplateURI(String templateName, boolean includeExtension)Used to resolve template names that are not relative to a controller. |
|
public String |
getAbsoluteViewURI(String viewName)Obtains a view URI that is not relative to any given controller |
|
public String |
getDeployedAbsoluteViewURI(String viewName)Obtains a view URI when deployed within the /WEB-INF/grails-app/views context |
|
public String |
getDeployedViewURI(String controllerName, String viewName)Obtains a view URI when deployed within the /WEB-INF/grails-app/views context |
|
public String |
getLogicalControllerName(GroovyObject controller) |
|
public String |
getNoSuffixViewURI(GroovyObject controller, String viewName)Obtains a view URI of the given controller and view name without the suffix |
|
public String |
getNoSuffixViewURI(String controllerName, String viewName)Obtains a view URI of the given controller name and view name without the suffix |
|
public String |
getTemplateURI(GroovyObject controller, String templateName)Obtains a template URI for the given controller instance and template name |
|
public String |
getTemplateURI(GroovyObject controller, String templateName, boolean includeExtension) |
|
public String |
getTemplateURI(String controllerName, String templateName)Obtains the URI to a template using the controller name and template name |
|
public String |
getTemplateURI(String controllerName, String templateName, boolean includeExtension)Obtains the URI to a template using the controller name and template name |
|
public String |
getViewURI(GroovyObject controller, String viewName)Obtains a view URI of the given controller and view name |
|
public String |
getViewURI(String controllerName, String viewName)Obtains a view URI of the given controller name and view name |
Used to resolve template names that are not relative to a controller.
templateName - The template name normally beginning with /includeExtension - The flag to include the template extensionObtains a view URI that is not relative to any given controller
viewName - The name of the viewObtains a view URI when deployed within the /WEB-INF/grails-app/views context
viewName - The name of the viewObtains a view URI when deployed within the /WEB-INF/grails-app/views context
controllerName - The name of the controllerviewName - The name of the viewObtains a view URI of the given controller and view name without the suffix
controller - The name of the controllerviewName - The name of the viewObtains a view URI of the given controller name and view name without the suffix
controllerName - The name of the controllerviewName - The name of the viewObtains a template URI for the given controller instance and template name
controller - The controller instancetemplateName - The template nameObtains the URI to a template using the controller name and template name
controllerName - The controller nametemplateName - The template nameObtains the URI to a template using the controller name and template name
controllerName - The controller nametemplateName - The template nameincludeExtension - The flag to include the template extensionObtains a view URI of the given controller and view name
controller - The name of the controllerviewName - The name of the view