@groovy.transform.Trait @groovy.transform.CompileStatic trait ResponseRenderer extends WebAttributes
A trait that adds behavior to allow rendering of objects to the response
Type Params | Return Type | Name and description |
---|---|---|
|
void |
render(java.lang.Object object) Render the given object to the response |
|
void |
render(groovy.lang.Closure closure) Use the given closure to render markup to the response. |
|
void |
render(java.util.Map argMap, groovy.lang.Closure closure) Render the given closure, configured by the named argument map, to the response |
|
void |
render(java.util.Map argMap, java.lang.CharSequence body) Render the given CharSequence to the response with the give named arguments |
|
void |
render(java.lang.CharSequence txt) Renders text to the response for the given CharSequence |
|
void |
render(java.util.Map argMap, groovy.lang.Writable writable) Render the given writable to the response using the named arguments to configure the response |
|
void |
render(java.util.Map argMap) Render a response for the given named arguments |
|
void |
setActionResultTransformers(ActionResultTransformer[] actionResultTransformers) |
|
void |
setGroovyPageLayoutFinder(org.grails.web.sitemesh.GroovyPageLayoutFinder groovyPageLayoutFinder) |
|
void |
setMimeUtility(MimeUtility mimeUtility) |
Methods inherited from class | Name |
---|---|
trait WebAttributes |
currentRequestAttributes, getActionName, getControllerClass, getControllerName, getControllerNamespace, getFlash, getGrailsApplication, getGrailsAttributes, getParams, getPluginContextPath, getWebRequest |
Render the given object to the response
object
- The object to renderUse the given closure to render markup to the response. The markup is assumed to be HTML. Use ResponseRenderer.render to change the content type.
closure
- The markup to renderRender the given closure, configured by the named argument map, to the response
argMap
- The name argumentsclosure
- The closure to renderRender the given CharSequence to the response with the give named arguments
argMap
- The named argumentsbody
- The text to renderRenders text to the response for the given CharSequence
txt
- The text to renderRender the given writable to the response using the named arguments to configure the response
argMap
- The named argumentswritable
- The writableRender a response for the given named arguments
argMap
- The named argument map