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 class
CacheInterceptor.CachedStreamFactory
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected BrowserCache
cache
Deprecated.
-
Constructor Summary
Constructors Constructor Description CacheInterceptor(BrowserCache cache)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accept(java.lang.Class declaring, java.lang.reflect.Method method)
Deprecated.private ClientResponse
cache(ClientRequest request, ClientResponse response)
Deprecated.ClientResponse
cacheIfPossible(ClientRequest request, BaseClientResponse response)
Deprecated.private BaseClientResponse
createClientResponse(ClientRequest request, BrowserCache.Entry entry)
Deprecated.ClientResponse
execute(ClientExecutionContext ctx)
Deprecated.protected BrowserCache.Entry
getEntry(ClientRequest request)
Deprecated.protected ClientResponse
handleExpired(ClientExecutionContext ctx, ClientRequest request, BrowserCache.Entry entry)
Deprecated.ClientResponse
updateOnNotModified(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:
accept
in interfaceAcceptedByMethod
-
execute
public ClientResponse execute(ClientExecutionContext ctx) throws java.lang.Exception
Deprecated.- Specified by:
execute
in 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
-
-