Class HeaderService
- java.lang.Object
-
- com.deviceatlas.cloud.deviceidentification.service.HeaderService
-
public class HeaderService extends java.lang.Object
Obtains the header set from the Cloud Service (/v1/detect/headers) and caches them.
-
-
Constructor Summary
Constructors Constructor Description HeaderService(EndPointService endPointService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientHeader[]
getHeaders()
First attempts to get the headers from the cache.
-
-
-
Constructor Detail
-
HeaderService
public HeaderService(EndPointService endPointService)
-
-
Method Detail
-
getHeaders
public ClientHeader[] getHeaders()
First attempts to get the headers from the cache. If cached headers are not available/stale, then get them from the cloud service. If the previous two methods fails then return the hard coded fallback set.- Returns:
-
-