Class CrawlerSessionManagerHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class CrawlerSessionManagerHandler
    extends java.lang.Object
    implements io.undertow.server.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 Detail

      • CrawlerSessionManagerHandler

        public CrawlerSessionManagerHandler​(CrawlerSessionManagerConfig config,
                                            io.undertow.server.HttpHandler next)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws java.lang.Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        java.lang.Exception