New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for resolving HttpSession from Servlet applications #16

flowersinthesand opened this Issue May 26, 2017 · 0 comments


None yet
1 participant
Copy link

flowersinthesand commented May 26, 2017

We got a feedback that a process to find javax.servlet.http.HttpSession from a socket is somewhat lengthy. Of course, it can be concise with the helper like this:

Server server = new DefaultServer();
server.onsocket(socket -> {
  HttpSessionResolver httpSessionResolver = new HttpSessionResolver();
  HttpSession httpSession = httpSessionResolver.resolve(socket);
  Set<String> tags = (Set<String>) httpSession.getAttribute("tags");

@flowersinthesand flowersinthesand added this to the 1.0.0-RC1 milestone May 26, 2017

@flowersinthesand flowersinthesand self-assigned this May 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment