public interface RoboExtendedResponseCache
A response cache that supports statistics tracking and updating stored responses. Implementations of ResponseCache
should implement this interface to receive additional support from the HTTP engine.
Modifier and Type | Method and Description |
---|---|
void |
trackConditionalCacheHit()
Track an conditional GET that was satisfied by this cache.
|
void |
trackResponse(RoboResponseSource source)
Track an HTTP response being satisfied by
source . |
void |
update(java.net.CacheResponse conditionalCacheHit,
java.net.HttpURLConnection httpConnection)
Updates stored HTTP headers using a hit on a conditional GET.
|
void trackResponse(RoboResponseSource source)
Track an HTTP response being satisfied by source
.
source
- Response source.void trackConditionalCacheHit()
Track an conditional GET that was satisfied by this cache.
void update(java.net.CacheResponse conditionalCacheHit, java.net.HttpURLConnection httpConnection)
Updates stored HTTP headers using a hit on a conditional GET.
conditionalCacheHit
- Conditional cache hit.httpConnection
- Http connection.