A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

AbstractAsyncResourcesClient - Class in grails.plugins.rest.client.async
Abstract base class for Asynchronous resource clients
AbstractAsyncResourcesClient(String, AsyncRestBuilder) - Constructor in AbstractAsyncResourcesClient
AbstractResourcesClient - Class in grails.plugins.rest.client.templated
Provides a simple client to resources exposed using Grails' REST support.
AbstractResourcesClient(String, RestBuilder) - Constructor in AbstractResourcesClient
accept(Class, String) - Method in RequestCustomizer
Sets the Accept HTTP header to the given value.
AsyncJsonResourcesClient - Class in grails.plugins.rest.client.async.templated
Asynchronous version of the JsonResourcesClient class
AsyncJsonResourcesClient(String, AsyncRestBuilder) - Constructor in AsyncJsonResourcesClient
AsyncRestBuilder - Class in grails.plugins.rest.client.async
Asynchronous version of the RestBuilder class.
AsyncRestBuilder(RestBuilder) - Constructor in AsyncRestBuilder
AsyncXmlResourcesClient - Class in grails.plugins.rest.client.async.templated
Asynchronous version of the XmlResourcesClient class
AsyncXmlResourcesClient(String, AsyncRestBuilder) - Constructor in AsyncXmlResourcesClient
auth(String) - Method in RequestCustomizer
Sets the Authorization HTTP header to the given value.

B

body(def) - Method in RequestCustomizer
Sets the body of the request to the given argument.

C

canRead(Class<?>, MediaType) - Method in GrailsConverterHttpMessageConverter
canRead(Class<?>, MediaType) - Method in WritableHttpMessageConverter
canWrite(Class<?>, MediaType) - Method in JsonHttpMessageConverter
contentType(String) - Method in RequestCustomizer
Sets the Content-Type HTTP header to the given value.
convertBody(Object) - Method in AbstractResourcesClient
Subclasses can optionally override to provide conversion
convertBody(Object) - Method in JsonResourcesClient
convertBody(Object) - Method in XmlResourcesClient
convertGPathResultToString(def) - Method in RestResponse
createEntity() - Method in RequestCustomizer
customize(Closure) - Method in AbstractAsyncResourcesClient
customize(Closure) - Method in AbstractResourcesClient
customizer - Field in AbstractAsyncResourcesClient
customizer - Field in AbstractResourcesClient

D

delete(Object) - Method in AbstractAsyncResourcesClient
Issues a DELETE request for the given id
delete(Object) - Method in AbstractResourcesClient
Issues a DELETE request for the given id
delete(String, Map<String, Object>, Closure) - Method in RestBuilder
Issues DELETE a request and returns the response
doRequestInternal(String, Closure, HttpMethod, Map<String, Object>) - Method in RestBuilder

E

F

G

get(Object, String) - Method in AbstractAsyncResourcesClient
Issues a GET request for the given id
get(Object, String) - Method in AbstractResourcesClient
Issues a GET request for the given id
get(String, Map<String, Object>, Closure) - Method in RestBuilder
Issues a GET request and returns the response in the most appropriate type
getAcceptContentType() - Method in AbstractAsyncResourcesClient
@return Subclasses should implement to provide the default content type used to exchange resources
getAcceptContentType() - Method in AbstractResourcesClient
@return Subclasses should implement to provide the default content type used to exchange resources
getAcceptContentType() - Method in AsyncJsonResourcesClient
getAcceptContentType() - Method in AsyncXmlResourcesClient
getAcceptContentType() - Method in JsonResourcesClient
getAcceptContentType() - Method in XmlResourcesClient
getAcceptType() - Method in AbstractAsyncResourcesClient
Subclasses should implement to provide the conversion to the target representation (JSON, XML etc.)
getAcceptType() - Method in AbstractResourcesClient
Subclasses should implement to provide the conversion to the target representation (JSON, XML etc.)
getAcceptType() - Method in AsyncJsonResourcesClient
getAcceptType() - Method in AsyncXmlResourcesClient
getAcceptType() - Method in JsonResourcesClient
getAcceptType() - Method in XmlResourcesClient
getAll(String) - Method in AbstractAsyncResourcesClient
Issues a GET request to the configured URL
getCharSetForMediaType(MediaType) - Method in GPathXmlHttpMessageConverter
getCharSetForMediaType(MediaType) - Method in GrailsConverterHttpMessageConverter
getCharSetForMediaType(MediaType) - Method in GsonHttpMessageConverter
getCharSetForMediaType(MediaType) - Method in JsonHttpMessageConverter
getCharSetForMediaType(MediaType) - Method in NullSafeStringHttpMessageConverter
getCharSetForMediaType(MediaType) - Method in WritableHttpMessageConverter
getProxyForSystemProperties() - Method in RestBuilder
getRestTemplate() - Method in AsyncRestBuilder
getStatus() - Method in RestResponse
getWritablePathResult(GPathResult) - Method in GPathXmlHttpMessageConverter
GPathXmlHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.xml
A org.springframework.http.converter.HttpMessageConverter for converting responses to a GPathResult
GrailsConverterHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.utils
A message converter that is capable of using Grails' converters API to write messages
GrailsConverterHttpMessageConverter() - Constructor in GrailsConverterHttpMessageConverter
GsonHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.json
A message converter for Google's GSON
GsonHttpMessageConverter() - Constructor in GsonHttpMessageConverter

H

handleResponse(ResponseEntity) - Method in RestBuilder
head() - Method in AbstractAsyncResourcesClient
Issues a HEAD request for the given id
head() - Method in AbstractResourcesClient
Issues a HEAD request for the given id
head(String, Closure) - Method in RestBuilder
Issues HEAD a request and returns the response
header(String, String) - Method in RequestCustomizer
Sets an HTTP header to the given name and value.

I

invokeRestTemplate(String, HttpMethod, RequestCustomizer) - Method in RestBuilder

J

json(def) - Method in RequestCustomizer
Converts the given object to JSON and sets the body to the converted JSON object
JsonHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.json
A message converter that supports JSON
JsonHttpMessageConverter() - Constructor in JsonHttpMessageConverter
JsonResourcesClient - Class in grails.plugins.rest.client.templated
A simple client for interacting with a REST web service exposed by a Grails application
JsonResourcesClient(String, RestBuilder) - Constructor in JsonResourcesClient

K

L

M

N

NullSafeStringHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.utils
String converter that takes into account a null body

O

options() - Method in AbstractAsyncResourcesClient
Issues a OPTIONS request for the given id
options() - Method in AbstractResourcesClient
Issues a OPTIONS request for the given id
options(String, Closure) - Method in RestBuilder
Issues OPTIONS a request and returns the response

P

patch(Object, T, String) - Method in AbstractAsyncResourcesClient
Issues a PATCH request for the given id
patch(Object, Object, String) - Method in AbstractResourcesClient
Issues a PATCH request for the given id
patch(String, Map<String, Object>, Closure) - Method in RestBuilder
Issues a PATCH request and returns the response
post(String, String) - Method in AbstractAsyncResourcesClient
Issues a POST request for the given id
post(String, String) - Method in AbstractResourcesClient
Issues a POST request for the given id
post(String, Map<String, Object>, Closure) - Method in RestBuilder
Issues a POST request and returns the response
put(Object, T, String) - Method in AbstractAsyncResourcesClient
Issues a PUT request for the given id
put(Object, Object, String) - Method in AbstractResourcesClient
Issues a PUT request for the given id
put(String, Map<String, Object>, Closure) - Method in RestBuilder
Issues a PUT request and returns the response in the most appropriate type

Q

R

readInternal(Class<? extends GPathResult>, HttpInputMessage) - Method in GPathXmlHttpMessageConverter
readInternal(Class<? extends Converter>, HttpInputMessage) - Method in GrailsConverterHttpMessageConverter
readInternal(Class<? extends JsonElement>, HttpInputMessage) - Method in GsonHttpMessageConverter
readInternal(Class<? extends JSONElement>, HttpInputMessage) - Method in JsonHttpMessageConverter
readInternal(Class<? extends String>, HttpInputMessage) - Method in NullSafeStringHttpMessageConverter
readInternal(Class<? extends Writable>, HttpInputMessage) - Method in WritableHttpMessageConverter
registerMessageConverters(RestTemplate) - Method in RestBuilder
RequestCustomizer - Class in grails.plugins.rest.client
Core of the DSL for building REST requests
RestBuilder - Class in grails.plugins.rest.client
Main API entry to the synchronous version of the REST low-level client API
RestBuilder(RestTemplate) - Constructor in RestBuilder
RestResponse - Class in grails.plugins.rest.client
Wraps a org.springframework.http.ResponseEntity allowing easy access to the underlying JSON or XML response.
RestResponse(ResponseEntity) - Constructor in RestResponse

S

setProperty(String, def) - Method in RequestCustomizer
Sets multipart values within the request body
supports(Class<?>) - Method in GPathXmlHttpMessageConverter
supports(Class<?>) - Method in GrailsConverterHttpMessageConverter
supports(Class<?>) - Method in GsonHttpMessageConverter
supports(Class<?>) - Method in JsonHttpMessageConverter
supports(Class<?>) - Method in WritableHttpMessageConverter

T

templatedUrl - Field in AbstractAsyncResourcesClient
templatedUrl - Field in AbstractResourcesClient
trace(String, Closure) - Method in RestBuilder
Issues TRACE a request and returns the response

U

urlVariables(Map<String, Object>) - Method in RequestCustomizer
Configures any variables used in the case of a templated URL.

V

W

WritableHttpMessageConverter - Class in org.grails.datastore.gorm.rest.client.utils
A message converter capable of using a Groovy Writable to write to the HttpOutputMessage
WritableHttpMessageConverter() - Constructor in WritableHttpMessageConverter
writeInternal(GPathResult, HttpOutputMessage) - Method in GPathXmlHttpMessageConverter
writeInternal(Converter, HttpOutputMessage) - Method in GrailsConverterHttpMessageConverter
writeInternal(JsonElement, HttpOutputMessage) - Method in GsonHttpMessageConverter
writeInternal(JSONElement, HttpOutputMessage) - Method in JsonHttpMessageConverter
writeInternal(Writable, HttpOutputMessage) - Method in WritableHttpMessageConverter

X

xml(def) - Method in RequestCustomizer
Converts the given object to XML using Grails' converters and sets the XML as the body of the request
XmlResourcesClient - Class in grails.plugins.rest.client.templated
A simple client for interacting with a REST web service exposed by a Grails application using XML as an interchange format
XmlResourcesClient(String, RestBuilder) - Constructor in XmlResourcesClient

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _