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(org.grails.web.servlet.mvc.ActionResultTransformer[] actionResultTransformers) |
|
void |
setGroovyPageLayoutFinder(org.grails.web.sitemesh.GroovyPageLayoutFinder groovyPageLayoutFinder) |
|
void |
setMimeUtility(grails.web.mime.MimeUtility mimeUtility) |
Methods inherited from class | Name |
---|---|
interface grails.web.api.WebAttributes |
grails.web.api.WebAttributes#getActionName(), grails.web.api.WebAttributes#getControllerName(), grails.web.api.WebAttributes#getControllerClass(), grails.web.api.WebAttributes#getControllerNamespace(), grails.web.api.WebAttributes#getGrailsApplication(), grails.web.api.WebAttributes#getParams(), grails.web.api.WebAttributes#currentRequestAttributes(), grails.web.api.WebAttributes#getGrailsAttributes(), grails.web.api.WebAttributes#getPluginContextPath(), grails.web.api.WebAttributes#getFlash(), grails.web.api.WebAttributes#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