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(Closure c) |
|
public void |
convertAnother(Object o) |
|
public W |
getWriter() |
|
public ObjectMarshaller<? extends Converter> |
lookupObjectMarshaller(Object target) |
|
public void |
render(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