public class CacheInterceptor extends AbstractInterceptor
Don't use, this does NOT implement valid HTTP caching.
We currently just use this class to cache a bunch of Debian and Ubuntu Repositories as well as the Docker Registry for offline use. The cache does not revalidate any responses, so machines querying the cache for Debian package updates will be stuck in the past until the cache (on disk) is cleared manually. - This is - simply put - the only use case, where using this class makes any sense.
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheInterceptor.FileStore |
static class |
CacheInterceptor.InMemoryStore |
static class |
CacheInterceptor.Store |
Interceptor.Flowid, name, router| Constructor and Description |
|---|
CacheInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
CacheInterceptor.Store |
getStore() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
void |
init(Router router) |
void |
setStore(CacheInterceptor.Store store) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, getShortDescription, handleAbort, init, setDisplayName, setFlow, setIdpublic CacheInterceptor.Store getStore()
public void setStore(CacheInterceptor.Store store)
public void init(Router router) throws Exception
init in interface Interceptorinit in class AbstractInterceptorExceptionpublic Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorhandleResponse in class AbstractInterceptorExceptionCopyright © 2019. All Rights Reserved.