/** * Creates a Session based on the {@link TyrusWebSocket}, subprotocols and extensions. * * @param socket the other end of the connection. * @param subprotocol used. * @param extensions extensions used. * @param debugContext debug context. * @return {@link Session} representing the connection. */ public Session createSessionForRemoteEndpoint(TyrusWebSocket socket, String subprotocol, List<Extension> extensions, DebugContext debugContext) { final TyrusSession session = new TyrusSession(container, socket, this, subprotocol, extensions, false, getURI(contextPath, null), null, Collections.<String, String>emptyMap(), null, Collections.<String, List<String>>emptyMap(), null, null, null, debugContext); webSocketToSession.put(socket, session); return session; }
/** * Creates a Session based on the {@link TyrusWebSocket}, subprotocols and extensions. * * @param socket the other end of the connection. * @param subprotocol used. * @param extensions extensions used. * @param debugContext debug context. * @return {@link Session} representing the connection. */ public Session createSessionForRemoteEndpoint(TyrusWebSocket socket, String subprotocol, List<Extension> extensions, DebugContext debugContext) { final TyrusSession session = new TyrusSession(container, socket, this, subprotocol, extensions, false, getURI(contextPath, null), null, Collections.<String, String>emptyMap(), null, Collections.<String, List<String>>emptyMap(), null, null, null, debugContext); webSocketToSession.put(socket, session); return session; }
session = new TyrusSession(container, socket, this, subProtocol, extensions, upgradeRequest.isSecure(), getURI(upgradeRequest.getRequestURI().toString(), upgradeRequest.getQueryString()),
session = new TyrusSession(container, socket, this, subProtocol, extensions, upgradeRequest.isSecure(), getURI(upgradeRequest.getRequestURI().toString(), upgradeRequest.getQueryString()),