Package io.undertow.servlet.handlers
Class CrawlerSessionManagerHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.CrawlerSessionManagerHandler
-
- All Implemented Interfaces:
HttpHandler
public class CrawlerSessionManagerHandler extends Object implements HttpHandler
Web crawlers can trigger the creation of many thousands of sessions as they crawl a site which may result in significant memory consumption. This Valve ensures that crawlers are associated with a single session - just like normal users - regardless of whether or not they provide a session token with their requests.
-
-
Constructor Summary
Constructors Constructor Description CrawlerSessionManagerHandler(CrawlerSessionManagerConfig config, HttpHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)
-
-
-
Constructor Detail
-
CrawlerSessionManagerHandler
public CrawlerSessionManagerHandler(CrawlerSessionManagerConfig config, HttpHandler next)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
- Specified by:
handleRequestin interfaceHttpHandler- Throws:
Exception
-
-