(Builder builder)
| 68 | } |
| 69 | |
| 70 | public Client(Builder builder) throws ConfigurationException { |
| 71 | List<URL> urls = new ArrayList<>(builder.urls); |
| 72 | if (urls.isEmpty()) { |
| 73 | try { |
| 74 | urls.add(new URL("http://localhost:1999")); |
| 75 | } catch (MalformedURLException e) { |
| 76 | throw new RuntimeException("invalid default development URL", e); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | this.urlIndex = new AtomicInteger(0); |
| 81 | this.urls = urls; |
| 82 | this.accessToken = builder.accessToken; |
| 83 | this.httpClient = buildHttpClient(builder); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Create a new http Client object using the default development host URL. |
nothing calls this directly
no test coverage detected