TileByteSource

interface TileByteSource

Raw byte transport for TileFetchQueue, abstracted from the inline HTTP client so the same queue (priority scheduling, earth.worldwind.layer.cache.BlobStore cache, auth, session recovery) can serve a local SLPK archive as well as remote HTTP. Auth rewrite, redirects and caching stay in the queue; this only fetches an already-rewritten URL. Archive sources: no rewrite, no redirects.

Inheritors

Functions

Link copied to clipboard
abstract fun close()

Release transport resources (close the HTTP client / archive handle). Idempotent.

Link copied to clipboard
abstract suspend fun get(uri: String, headers: Map<String, String> = emptyMap()): TileByteResponse

Fetch raw bytes for an already-rewritten uri. A miss is a non-success TileByteResponse.statusCode, not a throw; only real transport failures throw.

Link copied to clipboard
abstract fun handles(uri: String): Boolean

True when this source handles uri's scheme (http(s):, slpk:, 3dtiles:).