Guest User

Untitled

a guest
Jan 20th, 2017
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vertx.createHttpClient().getNow(url.getPort(), url.getHost(), "/groups/"+Config.getGroupId()+"/cars", new Handler<HttpClientResponse>() {
  2.  
  3. public void handle(HttpClientResponse httpClientResponse) {
  4.  
  5. httpClientResponse.bodyHandler(new Handler<Buffer>() {
  6. public void handle(Buffer buffer) {
  7. logger.debug("Response (" + buffer.length() + "): ");
  8. logger.debug(buffer.getString(0, buffer.length()));
  9. jsonReply = buffer.toJsonObject();
  10.  
  11. }
  12. });
  13. }});
RAW Paste Data