org.jboss.resteasy.plugins.cache.server
Class JBossCache

java.lang.Object
  extended by org.jboss.resteasy.plugins.cache.server.JBossCache
All Implemented Interfaces:
ServerCache

public class JBossCache
extends java.lang.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
static class JBossCache.CacheEntry
           
 
Nested classes/interfaces inherited from interface org.jboss.resteasy.plugins.cache.server.ServerCache
ServerCache.Entry
 
Field Summary
protected  org.jboss.cache.Cache cache
           
protected  int maxSize
           
protected  ResteasyProviderFactory providerFactory
           
protected  long wakeupInterval
           
 
Constructor Summary
JBossCache()
           
 
Method Summary
 ServerCache.Entry add(java.lang.String uri, MediaType mediaType, CacheControl cc, MultivaluedMap<java.lang.String,java.lang.Object> headers, byte[] entity, java.lang.String etag)
           
 void clear()
           
 ServerCache.Entry get(java.lang.String uri, MediaType accept)
           
 int getMaxSize()
           
 ResteasyProviderFactory getProviderFactory()
           
 long getWakeupInterval()
           
 void remove(java.lang.String key)
           
 void setMaxSize(int maxSize)
           
 void setProviderFactory(ResteasyProviderFactory providerFactory)
           
 void setWakeupInterval(long wakeupInterval)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxSize

protected int maxSize

wakeupInterval

protected long wakeupInterval

cache

protected org.jboss.cache.Cache cache

providerFactory

protected ResteasyProviderFactory providerFactory
Constructor Detail

JBossCache

public JBossCache()
Method Detail

getMaxSize

public int getMaxSize()

setMaxSize

public void setMaxSize(int maxSize)

getWakeupInterval

public long getWakeupInterval()

setWakeupInterval

public void setWakeupInterval(long wakeupInterval)

getProviderFactory

public ResteasyProviderFactory getProviderFactory()

setProviderFactory

public void setProviderFactory(ResteasyProviderFactory providerFactory)

start

public void start()

stop

public void stop()

get

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

add

public ServerCache.Entry add(java.lang.String uri,
                             MediaType mediaType,
                             CacheControl cc,
                             MultivaluedMap<java.lang.String,java.lang.Object> headers,
                             byte[] entity,
                             java.lang.String etag)
Specified by:
add in interface ServerCache

remove

public void remove(java.lang.String key)
Specified by:
remove in interface ServerCache

clear

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


Copyright © 2010. All Rights Reserved.