> From: Bob DeRemer [mailto:bob.dere...@thingworx.com] 
> 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to