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 Details

  • Constructor Details

    • CacheInterceptor

      public CacheInterceptor(BrowserCache cache)
  • Method Details

    • filter

      public void filter(jakarta.ws.rs.client.ClientRequestContext request) throws IOException
      Specified by:
      filter in interface jakarta.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 interface jakarta.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