public class LogHttpDataFetcher extends Object
HttpDataFetcher with the sole purpose of API request logging| Constructor and Description |
|---|
LogHttpDataFetcher(SdkInternalConfiguration config,
org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient,
UnifiedOddsStatistics statsBean,
HttpResponseHandler httpResponseHandler,
UserAgentProvider userAgentProvider,
TraceIdProvider traceIdProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
extractTraceId(org.apache.hc.core5.http.ClassicHttpRequest request) |
HttpData |
get(String path) |
HttpData |
post(String path,
org.apache.hc.core5.http.HttpEntity content) |
protected HttpData |
send(org.apache.hc.core5.http.ClassicHttpRequest request,
String path) |
@Inject public LogHttpDataFetcher(SdkInternalConfiguration config, org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, UnifiedOddsStatistics statsBean, HttpResponseHandler httpResponseHandler, UserAgentProvider userAgentProvider, TraceIdProvider traceIdProvider)
protected HttpData send(org.apache.hc.core5.http.ClassicHttpRequest request, String path) throws CommunicationException
CommunicationExceptionpublic HttpData get(String path) throws CommunicationException
CommunicationExceptionpublic HttpData post(String path, org.apache.hc.core5.http.HttpEntity content) throws CommunicationException
CommunicationExceptionprotected String extractTraceId(org.apache.hc.core5.http.ClassicHttpRequest request)
Copyright © 2016–2025. All rights reserved.