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>
-
-
Field Summary
-
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClientSessionInjectorbuild()ClientSessionFactorygetClientSessionFactory()static ClientSessionInjectorgetInstance()voidhandleRequest(io.undertow.server.HttpServerExchange exchange)voidsetClientSessionFactory(ClientSessionFactory clientSessionFactory)-
Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
-
-
-
Method Detail
-
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:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
getClientSessionFactory
public ClientSessionFactory getClientSessionFactory()
- Returns:
- the clientSessionFactory
-
setClientSessionFactory
public void setClientSessionFactory(ClientSessionFactory clientSessionFactory)
- Parameters:
clientSessionFactory- the clientSessionFactory to set
-
-