org.jboss.resteasy.client.cache
Class CacheFactory

java.lang.Object
  extended by org.jboss.resteasy.client.cache.CacheFactory

public class CacheFactory
extends java.lang.Object

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
CacheFactory()
           
 
Method Summary
static void makeCacheable(ClientInterceptorRepository interceptorRepository, BrowserCache cache)
          Make a raw ClientRequest cache results in the provided cache.
static LightweightBrowserCache makeCacheable(java.lang.Object clientProxy)
          Makes the client proxy cacheable.
static void makeCacheable(java.lang.Object clientProxy, BrowserCache cache)
          Makes the client proxy cacheable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactory

public CacheFactory()
Method Detail

makeCacheable

public static LightweightBrowserCache makeCacheable(java.lang.Object clientProxy)
Makes the client proxy cacheable. Returns the cache that will hold returned values from the server.

Parameters:
clientProxy -
Returns:

makeCacheable

public static void makeCacheable(java.lang.Object clientProxy,
                                 BrowserCache cache)
Makes the client proxy cacheable. This method allows you to pass in a shared cache that the proxy should use

Parameters:
clientProxy -
cache -

makeCacheable

public static void makeCacheable(ClientInterceptorRepository interceptorRepository,
                                 BrowserCache cache)
Make a raw ClientRequest cache results in the provided cache.

Parameters:
request -
cache -


Copyright © 2009. All Rights Reserved.