public class LogFastHttpDataFetcher extends Object
HttpDataFetcher with the sole purpose of API request logging| Constructor and Description |
|---|
LogFastHttpDataFetcher(SdkInternalConfiguration config,
org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient,
UnifiedOddsStatistics statsBean,
HttpResponseHandler responseDataHandler,
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 LogFastHttpDataFetcher(SdkInternalConfiguration config, org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, UnifiedOddsStatistics statsBean, HttpResponseHandler responseDataHandler, 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.