use of org.apache.camel.component.http4.handler.SessionReflectionHandler in project camel by apache.
the class HttpProducerSessionTest method initServer.
@BeforeClass
public static void initServer() throws Exception {
port = AvailablePortFinder.getNextAvailable(24000);
localServer = new Server(new InetSocketAddress("127.0.0.1", port));
ContextHandler contextHandler = new ContextHandler();
contextHandler.setContextPath("/session");
SessionHandler sessionHandler = new SessionHandler();
sessionHandler.setHandler(new SessionReflectionHandler());
contextHandler.setHandler(sessionHandler);
localServer.setHandler(contextHandler);
localServer.start();
}
Aggregations