org.jboss.resteasy.client.cache
Class MapCache

java.lang.Object
  extended by org.jboss.resteasy.client.cache.MapCache
All Implemented Interfaces:
BrowserCache

public class MapCache
extends java.lang.Object
implements BrowserCache


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.resteasy.client.cache.BrowserCache
BrowserCache.Entry, BrowserCache.Header
 
Field Summary
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> cache
           
 
Constructor Summary
MapCache()
           
MapCache(java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> cache)
           
 
Method Summary
 void clear()
           
protected  java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> createCache()
           
 BrowserCache.Entry get(java.lang.String key, MediaType accept)
           
 BrowserCache.Entry getAny(java.lang.String key)
           
 BrowserCache.Entry getEntry(java.lang.String key, MediaType accept)
           
 BrowserCache.Entry put(CacheEntry cacheEntry)
           
 BrowserCache.Entry put(java.lang.String key, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> headers, byte[] cached, int expires, java.lang.String etag, java.lang.String lastModified)
           
 BrowserCache.Entry remove(java.lang.String key, MediaType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> cache
Constructor Detail

MapCache

public MapCache()

MapCache

public MapCache(java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> cache)
Method Detail

createCache

protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,BrowserCache.Entry>> createCache()

get

public BrowserCache.Entry get(java.lang.String key,
                              MediaType accept)
Specified by:
get in interface BrowserCache

getAny

public BrowserCache.Entry getAny(java.lang.String key)
Specified by:
getAny in interface BrowserCache

getEntry

public BrowserCache.Entry getEntry(java.lang.String key,
                                   MediaType accept)

remove

public BrowserCache.Entry remove(java.lang.String key,
                                 MediaType type)
Specified by:
remove in interface BrowserCache

clear

public void clear()
Specified by:
clear in interface BrowserCache

put

public BrowserCache.Entry put(CacheEntry cacheEntry)

put

public BrowserCache.Entry put(java.lang.String key,
                              MediaType mediaType,
                              MultivaluedMap<java.lang.String,java.lang.String> headers,
                              byte[] cached,
                              int expires,
                              java.lang.String etag,
                              java.lang.String lastModified)
Specified by:
put in interface BrowserCache


Copyright © 2010. All Rights Reserved.