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.
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) |
protected io.undertow.websockets.jsr.JsrWebSocketFilter.WebSocketHandshakeHolder | handshakes(ConfiguredServerEndpoint config) |
protected io.undertow.websockets.jsr.JsrWebSocketFilter.WebSocketHandshakeHolder | handshakes(ConfiguredServerEndpoint config, List<ExtensionHandshake> extensions) |
void | init(javax.servlet.FilterConfig filterConfig) |
protected io.undertow.websockets.jsr.JsrWebSocketFilter.WebSocketHandshakeHolder handshakes(ConfiguredServerEndpoint config)
protected io.undertow.websockets.jsr.JsrWebSocketFilter.WebSocketHandshakeHolder handshakes(ConfiguredServerEndpoint config, List<ExtensionHandshake> extensions)
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 © 2015 JBoss by Red Hat. All rights reserved.