-
- All Implemented Interfaces:
-
com.datadog.android.core.internal.net.FirstPartyHostHeaderTypeResolver
public final class DefaultFirstPartyHostHeaderTypeResolver implements FirstPartyHostHeaderTypeResolver
Default implementation of FirstPartyHostHeaderTypeResolver.
-
-
Constructor Summary
Constructors Constructor Description DefaultFirstPartyHostHeaderTypeResolver(Map<String, Set<TracingHeaderType>> hosts)
-
Method Summary
Modifier and Type Method Description BooleanisFirstPartyUrl(HttpUrl url)BooleanisFirstPartyUrl(String url)Set<TracingHeaderType>headerTypesForUrl(String url)Set<TracingHeaderType>headerTypesForUrl(HttpUrl url)Set<TracingHeaderType>getAllHeaderTypes()BooleanisEmpty()-
-
Constructor Detail
-
DefaultFirstPartyHostHeaderTypeResolver
DefaultFirstPartyHostHeaderTypeResolver(Map<String, Set<TracingHeaderType>> hosts)
- Parameters:
hosts- Map of hosts and associated tracing header types to initialize instance with.
-
-
Method Detail
-
isFirstPartyUrl
Boolean isFirstPartyUrl(HttpUrl url)
- Parameters:
url- URL to check.
-
isFirstPartyUrl
Boolean isFirstPartyUrl(String url)
- Parameters:
url- URL to check.
-
headerTypesForUrl
Set<TracingHeaderType> headerTypesForUrl(String url)
- Parameters:
url- URL to check.
-
headerTypesForUrl
Set<TracingHeaderType> headerTypesForUrl(HttpUrl url)
- Parameters:
url- URL to check.
-
getAllHeaderTypes
Set<TracingHeaderType> getAllHeaderTypes()
-
-
-
-