SHARE
TWEET

Untitled

a guest Jan 20th, 2017 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         JsonObject jsonReply = null;
  2.         logger.debug("calling fleetmanager REST service- port:"+url.getPort()+" host:"+ url.getHost()+" path:/fleets/"+Config.getFleetId()+"/vehicles");
  3.         if (!check(key)) {
  4.             vertx.createHttpClient().getNow(url.getPort(), url.getHost(), "/groups/"+Config.getGroupId()+"/cars",  new Handler<HttpClientResponse>() {
  5.  
  6.                 public void handle(HttpClientResponse httpClientResponse) {
  7.  
  8.                     httpClientResponse.bodyHandler(new Handler<Buffer>() {
  9.                         public void handle(Buffer buffer) {
  10.                             logger.debug("Response (" + buffer.length() + "): ");
  11.                             logger.debug(buffer.getString(0, buffer.length()));
  12.                             jsonReply = buffer.toJsonObject();
  13.                            
  14.                         }
  15.                     });
  16.                 }});
  17.         }
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