Package | Description |
---|---|
ratpack.file |
Types for dealing with the file system and serving files.
|
ratpack.groovy.render |
Specialised Groovy support for rendering.
|
ratpack.jackson |
Integration with the Jackson JSON marshalling library.
|
ratpack.render |
The renderer framework provides a pluggable mechanism for serializing objects to the response.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FileRenderer |
Modifier and Type | Class and Description |
---|---|
class |
GroovyRendererSupport<T>
A specialisation of
RendererSupport that makes a GroovyContext available. |
Modifier and Type | Method and Description |
---|---|
static Renderer<JsonRender> |
Jackson.Init.renderer(ObjectWriter objectWriter)
The renderer.
|
protected Renderer<JsonRender> |
JacksonModule.renderer(ObjectWriter objectWriter) |
Modifier and Type | Class and Description |
---|---|
class |
RendererSupport<T>
A
Renderer super class that provides a RendererSupport.getType() implementation based on the generic type of the impl. |
Modifier and Type | Method and Description |
---|---|
static <T> Renderer<T> |
Renderer.of(Class<T> type,
BiConsumer<? super Context,? super T> impl)
Creates a renderer implementation from the given arguments.
|
Modifier and Type | Method and Description |
---|---|
static <T> TypeToken<Renderer<? super T>> |
Renderer.typeCompatibleOf(T toRender)
Creates a type token for a compatible renderer of the given type of object.
|
static <T> TypeToken<Renderer<T>> |
Renderer.typeOf(Class<T> typeToRender)
Creates a type token for a renderer of the given type of object.
|
Constructor and Description |
---|
RendererException(Renderer<?> renderer,
Object object,
Throwable cause)
Constructor.
|