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,
javax.ws.rs.core.MediaType accept) |
BrowserCache.Entry |
getAny(String key) |
BrowserCache.Entry |
getEntry(String key,
javax.ws.rs.core.MediaType accept) |
BrowserCache.Entry |
put(CacheEntry cacheEntry) |
BrowserCache.Entry |
put(String key,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
byte[] cached,
int expires,
String etag,
String lastModified) |
BrowserCache.Entry |
remove(String key,
javax.ws.rs.core.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, javax.ws.rs.core.MediaType accept)
get
in interface BrowserCache
public BrowserCache.Entry getAny(String key)
getAny
in interface BrowserCache
public BrowserCache.Entry getEntry(String key, javax.ws.rs.core.MediaType accept)
public BrowserCache.Entry remove(String key, javax.ws.rs.core.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, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> headers, byte[] cached, int expires, String etag, String lastModified)
put
in interface BrowserCache
Copyright © 2015 JBoss by Red Hat. All rights reserved.