Class InfinispanCache
- java.lang.Object
-
- org.jboss.resteasy.plugins.cache.server.InfinispanCache
-
- All Implemented Interfaces:
ServerCache
public class InfinispanCache extends Object implements ServerCache
An HTTP cache that behaves somewhat the same way as a proxy (like Squid)- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InfinispanCache.CacheEntry
-
Nested classes/interfaces inherited from interface org.jboss.resteasy.plugins.cache.server.ServerCache
ServerCache.Entry
-
-
Field Summary
Fields Modifier and Type Field Description protected org.infinispan.Cache
cache
-
Constructor Summary
Constructors Constructor Description InfinispanCache(org.infinispan.Cache cache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCache.Entry
add(String uri, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.CacheControl cc, javax.ws.rs.core.MultivaluedMap<String,Object> headers, byte[] entity, String etag, javax.ws.rs.core.MultivaluedMap<String,String> varyHeaders)
void
clear()
ServerCache.Entry
get(String uri, javax.ws.rs.core.MediaType accept, javax.ws.rs.core.MultivaluedMap<String,String> headers)
void
remove(String uri)
protected static javax.ws.rs.core.MultivaluedMap<String,?>
stringifyHeaders(javax.ws.rs.core.MultivaluedMap<String,?> headers)
protected static javax.ws.rs.core.MultivaluedMap<String,Object>
unstringifyHeaders(javax.ws.rs.core.MultivaluedMap<String,Object> headers)
-
-
-
Method Detail
-
get
public ServerCache.Entry get(String uri, javax.ws.rs.core.MediaType accept, javax.ws.rs.core.MultivaluedMap<String,String> headers)
- Specified by:
get
in interfaceServerCache
-
add
public ServerCache.Entry add(String uri, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.CacheControl cc, javax.ws.rs.core.MultivaluedMap<String,Object> headers, byte[] entity, String etag, javax.ws.rs.core.MultivaluedMap<String,String> varyHeaders)
- Specified by:
add
in interfaceServerCache
-
remove
public void remove(String uri)
- Specified by:
remove
in interfaceServerCache
-
clear
public void clear()
- Specified by:
clear
in interfaceServerCache
-
stringifyHeaders
protected static javax.ws.rs.core.MultivaluedMap<String,?> stringifyHeaders(javax.ws.rs.core.MultivaluedMap<String,?> headers)
-
-