Code example for Joiner

Methods: join

0
    it.next(); // ignore the bind host
    String port = it.next();
    // Use apps manager address to figure out the host for webapp 
    addr = conf.get(APPSMANAGER_ADDRESS, DEFAULT_APPSMANAGER_BIND_ADDRESS);
    String host = ADDR_SPLITTER.split(addr).iterator().next();
    return JOINER.join("http://", host, ":", port, "/");
  } 
} 
Contextual code suggestions in your IDE  Get Codota for Java