On 22/11/2018 21:29, Johan Compagner wrote: > Op do 22 nov. 2018 22:05 schreef Mark Thomas <ma...@apache.org: > >> On 22/11/2018 16:06, Johan Compagner wrote >>> >>> problem is how do we do that in a websocket scenario? >> >> Several options: >> - configure the connector >> - use a filter before the request reached the WebSocket filter >> > > > We can't do a Tomcat only version. We don't control deployment, we only can > generate the war file and configure in the web.xml in the war or in code. > > But can you add a filler to the same websocket url (let's say /websocket) > And then quickly set the encoding on that request before it upgrades it to > a websocket?
That will work on Tomcat because: a) Tomcat uses a Filter to redirect requests to WebSocket; and b) Tomcat puts this filter at the end of the chain to ensure that any filters that - for example - enforce security run first. For other containers it will depend on how they do the mapping. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org