Package com.smeup.kokos.sdk
Class ExecutionContextManager
java.lang.Object
com.smeup.kokos.sdk.ExecutionContextManager
- Author:
- mattia.bonardi This class handle the Grain user session called 'ExecutionContext'
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionContextcreateContext(ExecutionContextDTO dto, IServiceCaller serviceCaller) static ExecutionContextcreateContext(Map<String, String> headers, IServiceCaller serviceCaller) static ExecutionContextcreateContext(org.eclipse.jetty.server.Request request, IServiceCaller serviceCaller) Builds a hydrated context from a Jetty request's auth / V3 headers (and AuthToken cookie).
-
Constructor Details
-
ExecutionContextManager
public ExecutionContextManager()
-
-
Method Details
-
createContext
public static ExecutionContext createContext(ExecutionContextDTO dto, IServiceCaller serviceCaller) throws Exception - Throws:
Exception
-
createContext
public static ExecutionContext createContext(Map<String, String> headers, IServiceCaller serviceCaller) throws Exception- Throws:
Exception
-
createContext
public static ExecutionContext createContext(org.eclipse.jetty.server.Request request, IServiceCaller serviceCaller) throws Exception Builds a hydrated context from a Jetty request's auth / V3 headers (and AuthToken cookie).- Throws:
Exception
-