Groovy Documentation

grails.plugins.rest.client
[Groovy] Class RestResponse

java.lang.Object
  grails.plugins.rest.client.RestResponse

@groovy.transform.CompileStatic
class RestResponse

Wraps a ResponseEntity allowing easy access to the underlying JSON or XML response. All methods of ResponseEntity are available on this class

Authors:
Graeme Rocher
Since:
1.0


Property Summary
java.lang.String encoding

JSONElement json

ResponseEntity responseEntity

java.lang.String text

groovy.util.slurpersupport.GPathResult xml

 
Constructor Summary
RestResponse(ResponseEntity responseEntity)

 
Method Summary
protected java.lang.String convertGPathResultToString(java.lang.Object body)

int getStatus()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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()
 

Property Detail

encoding

java.lang.String encoding


json

@groovy.lang.Lazy
JSONElement json


responseEntity

@groovy.lang.Delegate
ResponseEntity responseEntity


text

@groovy.lang.Lazy
java.lang.String text


xml

@groovy.lang.Lazy
groovy.util.slurpersupport.GPathResult xml


 
Constructor Detail

RestResponse

RestResponse(ResponseEntity responseEntity)


 
Method Detail

convertGPathResultToString

@groovy.transform.CompileStatic(TypeCheckingMode.SKIP)
protected java.lang.String convertGPathResultToString(java.lang.Object body)


getStatus

int getStatus()


 

Groovy Documentation