Class ClientSessionInjector
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.injectors.ClientSessionInjector
- All Implemented Interfaces:
io.undertow.server.HttpHandler
this handler injects the ClientSession in the request context
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSessionInjectorbuild()static ClientSessionInjectorvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) voidsetClientSessionFactory(ClientSessionFactory clientSessionFactory) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Method Details
-
getInstance
- Returns:
-
build
- Returns:
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
getClientSessionFactory
- Returns:
- the clientSessionFactory
-
setClientSessionFactory
- Parameters:
clientSessionFactory- the clientSessionFactory to set
-