public class JsrWebSocketFilter extends Object implements javax.servlet.Filter
The use of a filter rather than a servlet allows for normal HTTP requests to be served from the same location as a web socket endpoint if no upgrade header is found.
Modifier and Type | Class and Description |
---|---|
static class | JsrWebSocketFilter.LogoutListener |
Constructor and Description |
---|
JsrWebSocketFilter() |
Modifier and Type | Method and Description |
---|---|
void | destroy() |
void | doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) |
void | init(javax.servlet.FilterConfig filterConfig) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
Copyright © 2020 JBoss by Red Hat. All rights reserved.