MCPcopy Index your code
hub / github.com/chain/Core / Client

Method Client

sdk/java/src/main/java/com/chain/http/Client.java:70–84  ·  view source on GitHub ↗
(Builder builder)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

buildHttpClientMethod · 0.95
addMethod · 0.80
setURLMethod · 0.80
setAccessTokenMethod · 0.80

Tested by

no test coverage detected