Class CacheInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.interceptor.cache.CacheInterceptor
- All Implemented Interfaces:
Interceptor
- Description
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.
- Topic
- 4. Interceptors/Features
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStore()handleRequest(Exchange exc) handleResponse(Exchange exc) voidvoidsetStore(CacheInterceptor.Store store) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getDisplayName, getFlow, getHelpId, getLongDescription, getMessage, getRouter, getRule, handleAbort, init, setDisplayName, setFlow
-
Constructor Details
-
CacheInterceptor
public CacheInterceptor()
-
-
Method Details
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getStore
-
setStore
-
init
- Specified by:
initin interfaceInterceptor- Overrides:
initin classAbstractInterceptor- Throws:
Exception
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-