@Override public void afterResponse(HandshakeResponse hr) { Map<String, List<String>> headers = hr.getHeaders(); storeCookies(headers); _webSocketSupported = false; // Must do case-insensitive search. for (String name : headers.keySet()) { if (HandshakeResponse.SEC_WEBSOCKET_ACCEPT.equalsIgnoreCase(name)) { _webSocketSupported = true; break; } } }
@Override public void afterResponse(HandshakeResponse hr) { Map<String, List<String>> headers = hr.getHeaders(); _webSocketSupported = headers.containsKey(HandshakeResponse.SEC_WEBSOCKET_ACCEPT); // TODO: cookie handling }