public class ApiSessionExpirationFilter
extends org.springframework.web.filter.GenericFilterBean
If No JSESSIONID is provided it session is valid.
If session is invalid a 401 is returned to the client.
Because the REST api doesn't need authentication this Filter must be used in addition to the AjaxAwareLoginUrlAuthenticationEntryPoint that only works on protected urls.
| Constructor and Description |
|---|
ApiSessionExpirationFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2017. All rights reserved.