public interface Cache
| Modifier and Type | Method and Description |
|---|---|
CachedHttpResponse |
getCached(java.lang.Object cacheId)
Returns the cached response if the exists into the cache.
|
java.lang.Object |
getCacheId(java.lang.String deviceId,
com.prosyst.mprm.net.nio.http.RequestHeader request)
Returns cache id for the requested target.
|
CacheImport |
getCacheImport(java.lang.Object cacheId,
com.prosyst.mprm.net.nio.http.ResponseHeader response)
Gets a CacheImport entry that could be used for inserting new entry into the cache.
|
java.lang.String[] |
getSupportedHeaderNames()
Returns the headers supported by the cache.
|
java.lang.String[] getSupportedHeaderNames()
CachedHttpResponse.getHeader(String) could return null for a supported header. Presence
into this list means just that header value could be available into cache.java.lang.Object getCacheId(java.lang.String deviceId,
com.prosyst.mprm.net.nio.http.RequestHeader request)
deviceId - the device id.request - the request header.null.CachedHttpResponse getCached(java.lang.Object cacheId)
null.cacheId - the cached id as it is got with getCacheId method.CacheImport getCacheImport(java.lang.Object cacheId, com.prosyst.mprm.net.nio.http.ResponseHeader response)
null.cacheId - Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.