Package org.jboss.resteasy.client.cache
Class CacheInterceptor
- java.lang.Object
-
- org.jboss.resteasy.client.cache.CacheInterceptor
-
- All Implemented Interfaces:
AcceptedByMethod,ClientExecutionInterceptor
@Deprecated public class CacheInterceptor extends java.lang.Object implements ClientExecutionInterceptor, AcceptedByMethod
Deprecated.Caching in the Resteasy client framework in resteasy-jaxrs is replaced by caching in the JAX-RS 2.0 compliant resteasy-client module.- Version:
- $Revision: 1 $
- See Also:
CacheInterceptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classCacheInterceptor.CachedStreamFactoryDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected BrowserCachecacheDeprecated.
-
Constructor Summary
Constructors Constructor Description CacheInterceptor(BrowserCache cache)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaccept(java.lang.Class declaring, java.lang.reflect.Method method)Deprecated.private ClientResponsecache(ClientRequest request, ClientResponse response)Deprecated.ClientResponsecacheIfPossible(ClientRequest request, BaseClientResponse response)Deprecated.private BaseClientResponsecreateClientResponse(ClientRequest request, BrowserCache.Entry entry)Deprecated.ClientResponseexecute(ClientExecutionContext ctx)Deprecated.protected BrowserCache.EntrygetEntry(ClientRequest request)Deprecated.protected ClientResponsehandleExpired(ClientExecutionContext ctx, ClientRequest request, BrowserCache.Entry entry)Deprecated.ClientResponseupdateOnNotModified(ClientRequest request, BrowserCache.Entry old, BaseClientResponse response)Deprecated.
-
-
-
Field Detail
-
cache
protected BrowserCache cache
Deprecated.
-
-
Constructor Detail
-
CacheInterceptor
public CacheInterceptor(BrowserCache cache)
Deprecated.
-
-
Method Detail
-
accept
public boolean accept(java.lang.Class declaring, java.lang.reflect.Method method)Deprecated.- Specified by:
acceptin interfaceAcceptedByMethod
-
execute
public ClientResponse execute(ClientExecutionContext ctx) throws java.lang.Exception
Deprecated.- Specified by:
executein interfaceClientExecutionInterceptor- Throws:
java.lang.Exception
-
handleExpired
protected ClientResponse handleExpired(ClientExecutionContext ctx, ClientRequest request, BrowserCache.Entry entry) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
cache
private ClientResponse cache(ClientRequest request, ClientResponse response) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
updateOnNotModified
public ClientResponse updateOnNotModified(ClientRequest request, BrowserCache.Entry old, BaseClientResponse response) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
createClientResponse
private BaseClientResponse createClientResponse(ClientRequest request, BrowserCache.Entry entry)
Deprecated.
-
cacheIfPossible
public ClientResponse cacheIfPossible(ClientRequest request, BaseClientResponse response) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
getEntry
protected BrowserCache.Entry getEntry(ClientRequest request) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
-