Affects Version/s: 1.0
Fix Version/s: None
You could use a Configurator for this:
public class GetServletContextConfigurator extends ServerEndpointConfig.Configurator
public void modifyHandshake(ServerEndpointConfig config,
But that doesn't work for me, because there is no http session..
and the above call does not create it. It could be made that that always just creates a session, but can then a jsessionid cookie be send back over that upgraded websocket request so that the browser does use that?
I need the ServletContext to read files and that kind of stuff right from the WAR. Its impossible to get to that directory (or war file itself if it is not extracted) in side a websocket.
I think what we need is
or something like that.