SHARE
TWEET

Untitled

a guest Jan 20th, 2017 28 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top