Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] jetty client websocket container and cookies

Hello all,
I have a client app that both issues standard http requests and makes websocket connections (to the same server). Currently I'm using Java-11's built in HttpClient for plain http and Jetty-10's client WebSocketContainer for websockets (obtained with ContainerProvider.getWebSocketContainer()). Now I need these 2 to share cookie storage: for HttpClient I can explicitly set CookieHandler with HttpClient.newBuilder().cookieHandler(cookieManager)....build() but I haven't been able to find any way to configure cookie storage for WebSocketContainer: is it possible to do it somehow?

Thanks!


Back to the top