public class TLfnDigestTileStore extends ALfnTileStoreWrapper
getTile
request is performed on coverages in this Tile Store, the Tile Store will compute the
digest on the tile data and verify whether it corresponds to the recorded digest. If it doesn't, the error
will be reported to the InvalidMessageDigestHandler
of this Tile Store.
Whenever a putTile
request is performed on coverages in this Tile Store, and no digest is provided
externally, this Tile Store will compute the digest on the tile data and include it in the putTile request to
the wrapped Tile Store.
This Tile Store can be used to decorate any other Tile Store (LTS client Tile Stores, file system Tile Stores, ...)
with digesting functionality.
If no tile message digest algorithm is configured on the coverage metadata, this decorator has no effect.Modifier and Type | Class and Description |
---|---|
static class |
TLfnDigestTileStore.InvalidMessageDigestHandler
Error handler for reporting invalid digests on data served by this Tile Store.
|
ALfnTileStore.CommitPolicy, ALfnTileStore.ReadResult, ALfnTileStore.Result, ALfnTileStore.WriteResult
fDelegate
Constructor and Description |
---|
TLfnDigestTileStore(ALfnTileStore aDelegate,
boolean aOmitCorruptTiles,
TLfnDigestTileStore.InvalidMessageDigestHandler aCorruptTileHandler)
Creates a new digest Tile Store as a decorator around the specified Tile Store.
|
Modifier and Type | Method and Description |
---|---|
ALfnCoverage |
getCoverage(String aID)
Gets a coverage from the Tile Store.
|
close, deleteResource, deleteUserData, getAsset, getCapabilities, getCoverageIds, getMetadata, getRasterAssetMetadata, getRasterCoverageMetadata, getResourceMetadata, getTheme, getThemeMetadata, getURI, getUserData, getVectorAssetMetadata, getVectorCoverageMetadata, putMetadata, putRasterAssetMetadata, putRasterCoverageMetadata, putResourceMetadata, putThemeMetadata, putUserData, putVectorAssetMetadata, putVectorCoverageMetadata, query, query, toString
public TLfnDigestTileStore(ALfnTileStore aDelegate, boolean aOmitCorruptTiles, TLfnDigestTileStore.InvalidMessageDigestHandler aCorruptTileHandler)
aDelegate
- the Tile Store to be decorated with message digestingaOmitCorruptTiles
- if true
, tiles with invalid digests will not be passed onto the getTile
handlers, if false
, all tiles will be passed onto the getTile handlers, whether
the digest matches or not.aCorruptTileHandler
- the handler to which invalid message digests should be reported, must never be null
public ALfnCoverage getCoverage(String aID) throws IOException, TLfnServiceException
ALfnTileStore
ALfnTileStore.getCoverageIds()
ALfnTileStore.query(ILfnQueryHandler, TLfnQuery)
and get the ID from the metadatagetCoverage
in class ALfnTileStoreWrapper
aID
- the ID of the desired coveragenull
if it does not existIOException
- in case of an I/O failureTLfnServiceException
- in case of a service processing failureALfnCoverage