Package rs.adsdev.ifconfig.client
Class IfconfigClient.Builder
java.lang.Object
rs.adsdev.ifconfig.client.IfconfigClient.Builder
- Enclosing class:
IfconfigClient
-
Method Summary
Modifier and TypeMethodDescriptionAPI key sent asAuthorization: Bearer <key>.Base URL of the ifconfig service.build()connectTimeout(Duration timeout) TCP connect timeout for the defaultHttpClient.httpClient(HttpClient client) Use a caller-suppliedHttpClientinstead of the default.objectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Use a caller-suppliedObjectMapper.requestTimeout(Duration timeout) Per-request timeout (read and response).Overrides theUser-Agentheader on every request.
-
Method Details
-
baseUrl
Base URL of the ifconfig service. Defaults tohttps://ifconfig.rs. -
apiKey
API key sent asAuthorization: Bearer <key>. Required forbatchlookups; optional for the rate-limited public endpoints. -
httpClient
Use a caller-suppliedHttpClientinstead of the default. -
objectMapper
public IfconfigClient.Builder objectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Use a caller-suppliedObjectMapper. -
connectTimeout
TCP connect timeout for the defaultHttpClient. -
requestTimeout
Per-request timeout (read and response). -
userAgent
Overrides theUser-Agentheader on every request. -
build
-