Class CacheHandler
java.lang.Object
io.undertow.server.handlers.cache.CacheHandler
- All Implemented Interfaces:
HttpHandler
Handler that attaches a cache to the exchange, a handler can query this cache to see if the
cache has a cached copy of the content, and if so have the cache serve this content automatically.
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionCacheHandler(DirectBufferCache cache) CacheHandler(DirectBufferCache cache, HttpHandler next) -
Method Summary
Modifier and TypeMethodDescriptiongetNext()voidhandleRequest(HttpServerExchange exchange) Handle the request.setNext(HttpHandler next)
-
Constructor Details
-
CacheHandler
-
CacheHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
getNext
-
setNext
-