Bug 568 - Websockets: Test & fix data change notifications 61/21861/3
authorJan Hajnar <jhajnar@cisco.com>
Tue, 2 Jun 2015 09:01:21 +0000 (11:01 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 8 Jun 2015 11:33:36 +0000 (11:33 +0000)
* changed WebSocketClient input parameter to accept "ws" protocol
instead of "http"

Change-Id: I2e1673707ca5231552195049024ebcb5e4964908
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
(cherry picked from commit c0b35fcde6bd4dfda88eb8ee507bf20c77644aa3)

opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/websockets/client/WebSocketClient.java

index 664aad6578c84fab98a3e569d00fa93dd3a1ee8d..bc915d0c86ddca2cc6959caec61f30a2a3ed92c1 100644 (file)
@@ -54,7 +54,7 @@ public class WebSocketClient {
     private void initialize() {
 
         String protocol = uri.getScheme();
-        if (!"http".equals(protocol)) {
+        if (!"ws".equals(protocol)) {
             throw new IllegalArgumentException("Unsupported protocol: " + protocol);
         }