| java.lang.Object |
| ↳ |
org.mule.module.servicesource.rest.RestCaller |
Known Direct Subclasses
|
Class Overview
Replace this class with the JerseyUtil in connector commons
Summary
| Fields |
|
private
NewCookie |
cookie |
Authentication Cookie
|
|
protected
Gson |
gson |
Gson instance to handle json marshalling/unmarshalling
|
|
private
static
final
Logger |
logger |
|
| Protected Methods |
|
abstract
<T>
T
|
onResponse(ClientResponse response, String json, Class<T> type)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
protected
Gson
gson
Gson instance to handle json marshalling/unmarshalling
private
static
final
Logger
logger
Public Constructors
public
RestCaller
(NewCookie coockie)
Public Methods
public
T
executeRequest
(String method, WebResource r, Object entity, Class<T> type)
public
List<T>
executeRequest
(String method, WebResource r)
public
List<T>
executeRequest
(String method, WebResource r, Object entity)
public
String
getCoockieValue
()
public
List<T>
streamRequest
(String method, WebResource r, Object entity, Class<T> type)
Protected Methods
protected
abstract
T
onResponse
(ClientResponse response, String json, Class<T> type)