Class MapCache
- java.lang.Object
-
- org.jboss.resteasy.client.jaxrs.cache.MapCache
-
- All Implemented Interfaces:
BrowserCache
public class MapCache extends Object implements BrowserCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.resteasy.client.jaxrs.cache.BrowserCache
BrowserCache.Entry, BrowserCache.Header
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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
put(CacheEntry cacheEntry)
BrowserCache.Entry
remove(String key, javax.ws.rs.core.MediaType type)
-
-
-
Field Detail
-
cache
protected Map<String,Map<String,BrowserCache.Entry>> cache
-
-
Constructor Detail
-
MapCache
public MapCache()
-
MapCache
public MapCache(Map<String,Map<String,BrowserCache.Entry>> cache)
-
-
Method Detail
-
createCache
protected Map<String,Map<String,BrowserCache.Entry>> createCache()
-
get
public BrowserCache.Entry get(String key, javax.ws.rs.core.MediaType accept)
- Specified by:
get
in interfaceBrowserCache
-
getAny
public BrowserCache.Entry getAny(String key)
- Specified by:
getAny
in interfaceBrowserCache
-
getEntry
public BrowserCache.Entry getEntry(String key, javax.ws.rs.core.MediaType accept)
-
remove
public BrowserCache.Entry remove(String key, javax.ws.rs.core.MediaType type)
- Specified by:
remove
in interfaceBrowserCache
-
clear
public void clear()
- Specified by:
clear
in interfaceBrowserCache
-
put
public BrowserCache.Entry put(CacheEntry cacheEntry)
-
put
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)
- Specified by:
put
in interfaceBrowserCache
-
-