/** * Factory method to create new {@link TyrusWebSocket} instances. Developers may * wish to override this to return customized {@link TyrusWebSocket} implementations. * * @param handler the {@link ProtocolHandler} to use with the newly created * {@link TyrusWebSocket}. * @return TODO */ TyrusWebSocket createSocket(final ProtocolHandler handler) { return new TyrusWebSocket(handler, this); }
/** * Factory method to create new {@link TyrusWebSocket} instances. Developers may * wish to override this to return customized {@link TyrusWebSocket} implementations. * * @param handler the {@link ProtocolHandler} to use with the newly created * {@link TyrusWebSocket}. * @return TODO */ TyrusWebSocket createSocket(final ProtocolHandler handler) { return new TyrusWebSocket(handler, this); }
clientHandShake.validateServerResponse(upgradeResponse); final TyrusWebSocket socket = new TyrusWebSocket(protocolHandler, endpointWrapper); final List<Extension> handshakeResponseExtensions = TyrusExtension.fromHeaders( upgradeResponse.getHeaders().get(HandshakeRequest.SEC_WEBSOCKET_EXTENSIONS));
clientHandShake.validateServerResponse(upgradeResponse); final TyrusWebSocket socket = new TyrusWebSocket(protocolHandler, endpointWrapper); final List<Extension> handshakeResponseExtensions = TyrusExtension.fromHeaders( upgradeResponse.getHeaders().get(HandshakeRequest.SEC_WEBSOCKET_EXTENSIONS));