public interface Converter<W>
Defines an Object that can convert an instance and render it to the response or a supplied writer.
| Modifiers | Name | Description |
|---|---|---|
enum |
Converter.CircularReferenceBehaviour |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
build(groovy.lang.Closure c) |
|
public void |
convertAnother(java.lang.Object o) |
|
public W |
getWriter() |
|
public ObjectMarshaller<? extends Converter> |
lookupObjectMarshaller(java.lang.Object target) |
|
public void |
render(java.io.Writer out)Marshalls the target and writes it to a java.io.Writer |
|
public void |
render(HttpServletResponse response)Marshalls the target and writes it a HttpServletResponse The response will be comitted after this operation |
Marshalls the target and writes it to a java.io.Writer
out - The Writer to write toMarshalls the target and writes it a HttpServletResponse The response will be comitted after this operation
response - The response to write to