ConvertersControllersApi (Grails 2.3.8)
Date: 2014-04-24

Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.grails.plugins.converters.api
[Groovy] Class ConvertersControllersApi

    java.lang.Object
      org.codehaus.groovy.grails.plugins.converters.api.ConvertersControllersApi

    class ConvertersControllersApi
    extends java.lang.Object

Additional API extensions provided to controllers via the converters plugin.

Authors:
  Graeme Rocher

Since:
  2.0

Method Summary
`void` | `jsonHeader(java.lang.Object controller, java.lang.Object value)` Used to render out X-JSON header
`void` | `render(java.lang.Object controller, Converter converter)` Method used to render out converted responses.

Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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()

Method Detail

### jsonHeader

    void jsonHeader(java.lang.Object controller, java.lang.Object value)

  Used to render out X-JSON header
  Parameters:
    `controller` - The controller
    `value` - the value

### render

    void render(java.lang.Object controller, Converter converter)

  Method used to render out converted responses. Used for render foo as XML
  Parameters:
    `controller` - The controller
    `converter` - The converter instance

Groovy Documentation