Search in sources :

Example 1 with WebConfigurer

use of org.activiti.rest.WebConfigurer in project Activiti by Activiti.

the class TestServerUtil method getServletContextHandler.

private static ServletContextHandler getServletContextHandler(AnnotationConfigWebApplicationContext context) throws IOException {
    ServletContextHandler contextHandler = new ServletContextHandler();
    WebConfigurer configurer = new WebConfigurer();
    configurer.setContext(context);
    contextHandler.addEventListener(configurer);
    // Create the SessionHandler (wrapper) to handle the sessions
    HashSessionManager manager = new HashSessionManager();
    SessionHandler sessions = new SessionHandler(manager);
    contextHandler.setHandler(sessions);
    return contextHandler;
}
Also used : SessionHandler(org.eclipse.jetty.server.session.SessionHandler) HashSessionManager(org.eclipse.jetty.server.session.HashSessionManager) WebConfigurer(org.activiti.rest.WebConfigurer) ServletContextHandler(org.eclipse.jetty.servlet.ServletContextHandler)

Aggregations

WebConfigurer (org.activiti.rest.WebConfigurer)1 HashSessionManager (org.eclipse.jetty.server.session.HashSessionManager)1 SessionHandler (org.eclipse.jetty.server.session.SessionHandler)1 ServletContextHandler (org.eclipse.jetty.servlet.ServletContextHandler)1