Class ClientSessionInjector

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.injectors.ClientSessionInjector
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class ClientSessionInjector extends PipelinedHandler
this handler injects the ClientSession in the request context
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Method Details

    • getInstance

      public static ClientSessionInjector getInstance()
      Returns:
    • build

      public static ClientSessionInjector build()
      Returns:
    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception
    • getClientSessionFactory

      public ClientSessionFactory getClientSessionFactory()
      Returns:
      the clientSessionFactory
    • setClientSessionFactory

      public void setClientSessionFactory(ClientSessionFactory clientSessionFactory)
      Parameters:
      clientSessionFactory - the clientSessionFactory to set