return null;
}
// Json
if (requestAnswer.getRequestType() == RequestType.JSON_GET) {
return (T) new EasyJsonHttpClient().get(requestAnswer.getUrl(),
requestAnswer.getClasse());
} else if (requestAnswer.getRequestType() == RequestType.JSON_POST) {
return (T) new EasyJsonHttpClient()
.post(requestAnswer.getUrl(), requestAnswer.getClasse(),
requestAnswer.getContentToSend());
} else if (requestAnswer.getRequestType() == RequestType.JSON_PUT) {
return (T) new EasyJsonHttpClient()
.put(requestAnswer.getUrl(), requestAnswer.getClasse(),
requestAnswer.getContentToSend());
}
if (requestAnswer.getRequestType() == RequestType.JSON_DELETE) {
new EasyJsonHttpClient().delete(requestAnswer.getUrl(),
requestAnswer.getContentToSend());
return null;
}
throw new IllegalAccessError();