@Test public void testGetJsonResponse() { String res = connection.getJsonResponse(PATH, params); assertEquals(JSON_RESPONSE, res); }
@Nullable public String getJsonResponse(String path, MultivaluedMap<String, String> params) { try { JsonRestClientResponse responce = client.get(path, params); Preconditions.checkNotNull(responce); logStatusCode(GET, responce.getStatusCode(), path, params); return responce.getJsonResponse(); } catch (ClientHandlerException e) { processClientHandlerException(e); } return null; }
SFlowRTConnection { @Nullable public String getJsonResponse(String path, MultivaluedMap<String, String> params) { try { JsonRestClientResponse responce = client.get(path, params); Preconditions.checkNotNull(responce); logStatusCode(GET, responce.getStatusCode(), path, params); return responce.getJsonResponse(); } catch (ClientHandlerException e) { processClientHandlerException(e); } return null; } }
SFlowRTConnection { @Nullable public String getJsonResponse(String path, MultivaluedMap<String, String> params) { try { JsonRestClientResponse responce = client.get(path, params); Preconditions.checkNotNull(responce); logStatusCode(GET, responce.getStatusCode(), path, params); return responce.getJsonResponse(); } catch (ClientHandlerException e) { processClientHandlerException(e); } return null; } SFlowRTConnection(ScheduledExecutorService executor, String collectorUri, FlowCache flowCache, JsonRestClient client); }
SFlowRTConnection { @Nullable public String getJsonResponse(String path, MultivaluedMap<String, String> params) { try { JsonRestClientResponse responce = client.get(path, params); Preconditions.checkNotNull(responce); logStatusCode(GET, responce.getStatusCode(), path, params); return responce.getJsonResponse(); } catch (ClientHandlerException e) { processClientHandlerException(e); } return null; } SFlowRTConnection(ScheduledExecutorService executor, String collectorUri, FlowCache flowCache, JsonRestClient client); @Nullable String getJsonResponse(String path, MultivaluedMap<String, String> params); @Nullable JsonRestClientResponse get(String path,
            MultivaluedMap<String, String> params); @Nullable JsonRestClientResponse put(String path, String someJson); JsonRestClientResponse delete(String path); boolean isInitialized(); FlowCache getFlowCache(); ScheduledExecutorService getExecutor(); String getCollectorUri(); void initialize(); }
SFlowRTConnection { @Nullable public String getJsonResponse(String path, MultivaluedMap<String, String> params) { try { JsonRestClientResponse responce = client.get(path, params); Preconditions.checkNotNull(responce); logStatusCode(GET, responce.getStatusCode(), path, params); return responce.getJsonResponse(); } catch (ClientHandlerException e) { processClientHandlerException(e); } return null; } SFlowRTConnection(ScheduledExecutorService executor, String collectorUri, FlowCache flowCache, JsonRestClient client); @Nullable String getJsonResponse(String path, MultivaluedMap<String, String> params); @Nullable JsonRestClientResponse get(String path,
            MultivaluedMap<String, String> params); @Nullable JsonRestClientResponse put(String path, String someJson); JsonRestClientResponse delete(String path); boolean isInitialized(); FlowCache getFlowCache(); ScheduledExecutorService getExecutor(); String getCollectorUri(); void initialize();  }