java.lang.Object
org.miaixz.bus.http.cache.CacheInterceptor
- All Implemented Interfaces:
Interceptor
An interceptor that serves requests from the cache and writes responses to the cache.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Details
-
CacheInterceptor
-
-
Method Details
-
intercept
Description copied from interface:InterceptorIntercepts the givenchainto process a network request.- Specified by:
interceptin interfaceInterceptor- Parameters:
chain- The network call chain.- Returns:
- The
Responsefrom the network request. - Throws:
IOException- if an I/O error occurs during interception.
-