Skip to content

Instantly share code, notes, and snippets.

@luksrn
Created March 5, 2018 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luksrn/58034ee3b664e33451f191c70130e7a6 to your computer and use it in GitHub Desktop.
Save luksrn/58034ee3b664e33451f191c70130e7a6 to your computer and use it in GitHub Desktop.
public class SessionRepositoryFilter implements Filter {
public doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
HttpServletRequest httpRequest = (HttpServletRequest) request;
SessionRepositoryRequestWrapper customRequest =
new SessionRepositoryRequestWrapper(httpRequest);
chain.doFilter(customRequest, response, chain);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment