|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface Converter
Defines an Object that can convert an instance and render it to the response or a supplied writer.
Nested Class Summary | |
---|---|
enum |
Converter.CircularReferenceBehaviour
|
Field Summary | |
---|---|
java.lang.String |
DEFAULT_REQUEST_ENCODING
|
Method Summary | |
---|---|
void
|
build(groovy.lang.Closure c)
|
void
|
convertAnother(java.lang.Object o)
|
W
|
getWriter()
|
ObjectMarshaller
|
lookupObjectMarshaller(java.lang.Object target)
|
void
|
render(java.io.Writer out)
Marshalls the target and writes it to a java.io.Writer |
void
|
render(javax.servlet.http.HttpServletResponse response)
Marshalls the target and writes it a HttpServletResponse The response will be comitted after this operation |
Field Detail |
---|
public java.lang.String DEFAULT_REQUEST_ENCODING
Method Detail |
---|
public void build(@SuppressWarnings("rawtypes") groovy.lang.Closure c)
public void convertAnother(java.lang.Object o)
public W getWriter()
@SuppressWarnings("rawtypes") public ObjectMarshaller lookupObjectMarshaller(java.lang.Object target)
public void render(java.io.Writer out)
out
- The Writer to write to
public void render(javax.servlet.http.HttpServletResponse response)
response
- The response to write to
Groovy Documentation