A ViewUriResolver is response for response template and view URIs using Grails' conventions.
Type | Name and description |
---|---|
java.lang.String |
resolveTemplateUri(java.lang.String controllerName, java.lang.String templateName) Resolves a template URI for the given path |
java.lang.String |
resolveTemplateUri(java.lang.String controllerNamespace, java.lang.String controllerName, java.lang.String templateName) Resolves a template URI for the given path |
Resolves a template URI for the given path Example: assert resolveTemplateUri('foo', 'bar') == /foo/_bar.gson
controllerName
- The controller namepath
- The path to the templateResolves a template URI for the given path Example: assert resolveTemplateUri('api', 'foo', 'bar') == /api/foo/_bar.gson
controllerNamespace
- The controller controllerNamespacecontrollerName
- The controller namepath
- The path to the template