public class MapCache extends Object implements BrowserCache
BrowserCache.Entry, BrowserCache.Header
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<String,BrowserCache.Entry>> |
cache |
Constructor and Description |
---|
MapCache() |
MapCache(Map<String,Map<String,BrowserCache.Entry>> cache) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected Map<String,Map<String,BrowserCache.Entry>> |
createCache() |
BrowserCache.Entry |
get(String key,
MediaType accept) |
BrowserCache.Entry |
getAny(String key) |
BrowserCache.Entry |
getEntry(String key,
MediaType accept) |
BrowserCache.Entry |
put(CacheEntry cacheEntry) |
BrowserCache.Entry |
put(String key,
MediaType mediaType,
MultivaluedMap<String,String> headers,
byte[] cached,
int expires,
String etag,
String lastModified) |
BrowserCache.Entry |
remove(String key,
MediaType type) |
protected Map<String,Map<String,BrowserCache.Entry>> cache
public MapCache()
public MapCache(Map<String,Map<String,BrowserCache.Entry>> cache)
protected Map<String,Map<String,BrowserCache.Entry>> createCache()
public BrowserCache.Entry get(String key, MediaType accept)
get
in interface BrowserCache
public BrowserCache.Entry getAny(String key)
getAny
in interface BrowserCache
public BrowserCache.Entry getEntry(String key, MediaType accept)
public BrowserCache.Entry remove(String key, MediaType type)
remove
in interface BrowserCache
public void clear()
clear
in interface BrowserCache
public BrowserCache.Entry put(CacheEntry cacheEntry)
public BrowserCache.Entry put(String key, MediaType mediaType, MultivaluedMap<String,String> headers, byte[] cached, int expires, String etag, String lastModified)
put
in interface BrowserCache
Copyright © 2017 JBoss by Red Hat. All rights reserved.