> From: Bob DeRemer [mailto:[email protected]] 
> Sent: Tuesday, September 10, 2013 10:08 AM
> To: Tomcat Users List
> Subject: can a Filter be used to pre-process calls to a websocket endpoint?

> Is it possible to programmatically add a Servlet Filter to Tomcat during the 
> ContextInitialized call so that it filters requests going to a websocket 
> endpoint?  

My apologies for posting before trying.  I was able to do this using 
ServletContext.addFilter and the FilterRegistration.Dynamic functionality.  As 
I suspected, by adding a mapping for the respective URLs, the request is 
filtered - regardless of whether it's going to a Servlet or WebSocket Endpoint.

> Thanks,

> Bob DeRemer
> Senior Director, Architecture and Development


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to