Class LogFastHttpDataFetcher
java.lang.Object
com.sportradar.unifiedodds.sdk.internal.impl.LogFastHttpDataFetcher
Wrapper class for the
HttpDataFetcher with the sole purpose of API request logging-
Constructor Summary
ConstructorsConstructorDescriptionLogFastHttpDataFetcher(SdkInternalConfiguration config, org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, UnifiedOddsStatistics statsBean, HttpResponseHandler responseDataHandler, UserAgentProvider userAgentProvider, TraceIdProvider traceIdProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractTraceId(org.apache.hc.core5.http.ClassicHttpRequest request) protected HttpData
-
Constructor Details
-
LogFastHttpDataFetcher
@Inject public LogFastHttpDataFetcher(SdkInternalConfiguration config, org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient httpClient, UnifiedOddsStatistics statsBean, HttpResponseHandler responseDataHandler, UserAgentProvider userAgentProvider, TraceIdProvider traceIdProvider)
-
-
Method Details
-
send
protected HttpData send(org.apache.hc.core5.http.ClassicHttpRequest request, String path) throws CommunicationException - Throws:
CommunicationException
-
get
- Throws:
CommunicationException
-
post
public HttpData post(String path, org.apache.hc.core5.http.HttpEntity content) throws CommunicationException - Throws:
CommunicationException
-
extractTraceId
-