public static class CachingLinkedDataSource.LinkedDataCacheEntry
extends java.lang.Object
| Constructor and Description |
|---|
LinkedDataCacheEntry(byte[] dataset)
Non-expiring cache entry for the specified dataset.
|
LinkedDataCacheEntry(java.lang.String etag,
java.util.Date expires,
byte[] dataset,
java.util.EnumSet<CachingLinkedDataSource.CacheControlFlag> cacheControlFlags,
org.springframework.http.HttpHeaders headers,
int statusCode)
Entry for the linked data cache
|
| Modifier and Type | Method and Description |
|---|---|
java.util.EnumSet<CachingLinkedDataSource.CacheControlFlag> |
getCacheControlFlags() |
byte[] |
getDataset() |
java.lang.String |
getEtag() |
java.util.Date |
getExpires() |
boolean |
isExpiredAtDate(java.util.Date when)
Checks if the cache item is expired at the given date.
|
DatasetResponseWithStatusCodeAndHeaders |
recreateResponse() |
public LinkedDataCacheEntry(java.lang.String etag,
java.util.Date expires,
byte[] dataset,
java.util.EnumSet<CachingLinkedDataSource.CacheControlFlag> cacheControlFlags,
org.springframework.http.HttpHeaders headers,
int statusCode)
etag - etag that will be compared when trying to update this entry from
the server. If null, the resource will be fetched without prior etag based
modification check when expired.expires - the date that is sent to the server as the expiry date (null
for never expires)dataset - the dataset to cachecacheControlFlags - cache control flagsheaders - the headers from the HTTP response for recreating the http
response for concurrent requests (null if not applicable)statusCode - the status code from the HTTP response for recreating the
http response for concurrent requests (null if not applicable)public LinkedDataCacheEntry(byte[] dataset)
dataset - public DatasetResponseWithStatusCodeAndHeaders recreateResponse()
public java.lang.String getEtag()
public byte[] getDataset()
public java.util.Date getExpires()
public java.util.EnumSet<CachingLinkedDataSource.CacheControlFlag> getCacheControlFlags()
public boolean isExpiredAtDate(java.util.Date when)
when - Copyright © 2019. All Rights Reserved.