16171819202122
} public <T> EasyHttpSyncSingleExecutor get(String url, Class<T> classe) { answer.add(RequestType.JSON_GET, url, classe, null); return new EasyHttpSyncSingleExecutor(answer); };
22232425262728
}; public <T> EasyHttpSyncSingleExecutor post(String url, Class<T> classe, Serializable contentToSend) { answer.add(RequestType.JSON_POST, url, classe, contentToSend); return new EasyHttpSyncSingleExecutor(answer); }
28293031323334
} public <T> EasyHttpSyncSingleExecutor put(String url, Class<T> classe, Serializable contentToSend) { answer.add(RequestType.JSON_PUT, url, classe, contentToSend); return new EasyHttpSyncSingleExecutor(answer); }
13141516171819
this.answer = list; } public EasyHttpSyncSingleExecutor get(String url) { answer.add(RequestType.STRING_GET, url, String.class, null); return new EasyHttpSyncSingleExecutor(answer); };
18192021222324
return new EasyHttpSyncSingleExecutor(answer); }; public EasyHttpSyncSingleExecutor post(String url, String contentToSend) { answer.add(RequestType.STRING_POST, url, String.class, contentToSend); return new EasyHttpSyncSingleExecutor(answer); }
24252627282930
} public EasyHttpSyncSingleExecutor put(String url, String contentToSend) { answer.add(RequestType.STRING_PUT, url, String.class, contentToSend); return new EasyHttpSyncSingleExecutor(answer); }