Class CacheInterceptor
java.lang.Object
org.jboss.resteasy.client.jaxrs.cache.CacheInterceptor
- All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter
,jakarta.ws.rs.client.ClientResponseFilter
public class CacheInterceptor
extends Object
implements jakarta.ws.rs.client.ClientRequestFilter, jakarta.ws.rs.client.ClientResponseFilter
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheIfPossible
(jakarta.ws.rs.client.ClientRequestContext request, jakarta.ws.rs.client.ClientResponseContext response) void
filter
(jakarta.ws.rs.client.ClientRequestContext request) void
filter
(jakarta.ws.rs.client.ClientRequestContext request, jakarta.ws.rs.client.ClientResponseContext response) protected BrowserCache.Entry
getEntry
(jakarta.ws.rs.client.ClientRequestContext request) void
updateOnNotModified
(jakarta.ws.rs.client.ClientRequestContext request, BrowserCache.Entry old, jakarta.ws.rs.client.ClientResponseContext response)
-
Field Details
-
cache
-
-
Constructor Details
-
CacheInterceptor
-
-
Method Details
-
filter
- Specified by:
filter
in interfacejakarta.ws.rs.client.ClientRequestFilter
- Throws:
IOException
-
filter
public void filter(jakarta.ws.rs.client.ClientRequestContext request, jakarta.ws.rs.client.ClientResponseContext response) throws IOException - Specified by:
filter
in interfacejakarta.ws.rs.client.ClientResponseFilter
- Throws:
IOException
-
updateOnNotModified
public void updateOnNotModified(jakarta.ws.rs.client.ClientRequestContext request, BrowserCache.Entry old, jakarta.ws.rs.client.ClientResponseContext response) -
cacheIfPossible
public void cacheIfPossible(jakarta.ws.rs.client.ClientRequestContext request, jakarta.ws.rs.client.ClientResponseContext response) throws IOException - Throws:
IOException
-
getEntry
protected BrowserCache.Entry getEntry(jakarta.ws.rs.client.ClientRequestContext request) throws Exception - Throws:
Exception
-