@groovy.transform.Trait @groovy.transform.CompileStatic trait RestResponder extends java.lang.Object
Type | Name and description |
---|---|
ProxyHandler |
proxyHandler |
RendererRegistry |
rendererRegistry |
Type Params | Return Type | Name and description |
---|---|---|
|
ProxyHandler |
getProxyHandler() |
|
RendererRegistry |
getRendererRegistry() |
|
java.lang.Object |
respond(java.util.Map args, java.lang.Object value) Same as RestResponder.respond, but here to support Groovy named arguments |
|
java.lang.Object |
respond(java.util.Map value) The respond method will attempt to delivery an appropriate response for the requested response format and Map value. |
|
java.lang.Object |
respond(java.util.Map namedArgs, java.util.Map value) Same as RestResponder.respond, but here to support Groovy named arguments |
|
java.lang.Object |
respond(java.lang.Object value, java.util.Map args) The respond method will attempt to delivery an appropriate response for the requested response format and value. |
|
void |
setProxyHandler(ProxyHandler proxyHandler) |
|
void |
setRendererRegistry(RendererRegistry rendererRegistry) |
Methods inherited from class | Name |
---|---|
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() |
Same as RestResponder.respond, but here to support Groovy named arguments
The respond method will attempt to delivery an appropriate response for the requested response format and Map value. If the value is null then a 404 will be returned. Otherwise the RendererRegistry will be consulted for an appropriate response renderer for the requested response format. @return
value
- The valueSame as RestResponder.respond, but here to support Groovy named arguments
The respond method will attempt to delivery an appropriate response for the requested response format and value. If the value is null then a 404 will be returned. Otherwise the RendererRegistry will be consulted for an appropriate response renderer for the requested response format. @return
value
- The valueargs
- The arguments