public class LogHttpDataFetcher extends Object
HttpDataFetcher
with the sole purpose of API request loggingConstructor 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
CommunicationException
public HttpData get(String path) throws CommunicationException
CommunicationException
public HttpData post(String path, org.apache.hc.core5.http.HttpEntity content) throws CommunicationException
CommunicationException
protected String extractTraceId(org.apache.hc.core5.http.ClassicHttpRequest request)
Copyright © 2016–2025. All rights reserved.