Groovy Documentation

griffon.plugins.rest
[Groovy] Class RestClientHolder

java.lang.Object
  griffon.plugins.rest.RestClientHolder

class RestClientHolder
extends Object

Authors:
Andres Almiray


Field Summary
private Map ASYNC_HTTP

private Map HTTP

private static RestClientHolder INSTANCE

private Map REST

 
Constructor Summary
private RestClientHolder()

 
Method Summary
groovyx.net.http.AsyncHTTPBuilder fetchAsyncHttpClient(Map params)

private def fetchClient(Map clientStore, Class klass, Map params)

groovyx.net.http.HTTPBuilder fetchHttpClient(Map params)

groovyx.net.http.RESTClient fetchRestClient(Map params)

groovyx.net.http.AsyncHTTPBuilder getAsyncHttpClient(String id)

String[] getAsyncHttpClientIds()

groovyx.net.http.HTTPBuilder getHttpClient(String id)

String[] getHttpClientIds()

static RestClientHolder getInstance()

groovyx.net.http.RESTClient getRestClient(String id)

String[] getRestClientIds()

void setAsyncHttpClient(String id, groovyx.net.http.AsyncHTTPBuilder client)

void setHttpClient(String id, groovyx.net.http.HTTPBuilder client)

void setRestClient(String id, groovyx.net.http.RESTClient client)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

ASYNC_HTTP

private final Map ASYNC_HTTP


HTTP

private final Map HTTP


INSTANCE

private static final RestClientHolder INSTANCE


REST

private final Map REST


 
Constructor Detail

RestClientHolder

private RestClientHolder()


 
Method Detail

fetchAsyncHttpClient

groovyx.net.http.AsyncHTTPBuilder fetchAsyncHttpClient(Map params)


fetchClient

private def fetchClient(Map clientStore, Class klass, Map params)


fetchHttpClient

groovyx.net.http.HTTPBuilder fetchHttpClient(Map params)


fetchRestClient

groovyx.net.http.RESTClient fetchRestClient(Map params)


getAsyncHttpClient

groovyx.net.http.AsyncHTTPBuilder getAsyncHttpClient(String id)


getAsyncHttpClientIds

String[] getAsyncHttpClientIds()


getHttpClient

groovyx.net.http.HTTPBuilder getHttpClient(String id)


getHttpClientIds

String[] getHttpClientIds()


getInstance

static RestClientHolder getInstance()


getRestClient

groovyx.net.http.RESTClient getRestClient(String id)


getRestClientIds

String[] getRestClientIds()


setAsyncHttpClient

void setAsyncHttpClient(String id, groovyx.net.http.AsyncHTTPBuilder client)


setHttpClient

void setHttpClient(String id, groovyx.net.http.HTTPBuilder client)


setRestClient

void setRestClient(String id, groovyx.net.http.RESTClient client)


 

Groovy Documentation