Author: cmoulliard
Date: Thu May 24 09:47:58 2012
New Revision: 1342180
URL: http://svn.apache.org/viewvc?rev=1342180&view=rev
Log:
CAMEL-5280: Add support for websocket secure --> wss://
Modified:
camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketSSLContextInUriRouteExampleTest.java
Modified:
camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketSSLContextInUriRouteExampleTest.java
URL:
http://svn.apache.org/viewvc/camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketSSLContextInUriRouteExampleTest.java?rev=1342180&r1=1342179&r2=1342180&view=diff
==============================================================================
---
camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketSSLContextInUriRouteExampleTest.java
(original)
+++
camel/trunk/components/camel-websocket/src/test/java/org/apache/camel/component/websocket/WebsocketSSLContextInUriRouteExampleTest.java
Thu May 24 09:47:58 2012
@@ -47,8 +47,7 @@ public class WebsocketSSLContextInUriRou
private static CountDownLatch latch = new CountDownLatch(10);
private Properties originalValues = new Properties();
private String pwd = "changeit";
- private String uriConsumer;
- private String uriProducer;
+ private String uri;
private String server = "127.0.0.1";
private int port = 8443;
@@ -58,8 +57,7 @@ public class WebsocketSSLContextInUriRou
URL trustStoreUrl =
this.getClass().getClassLoader().getResource("jsse/localhost.ks");
setSystemProp("javax.net.ssl.trustStore",
trustStoreUrl.toURI().getPath());
- uriConsumer = "websocket://" + server + ":" + port +
"/test?sslContextParametersRef=#sslContextParameters";
- uriProducer = "websocket://" + server + ":" + port + "/test";
+ uri = "websocket://" + server + ":" + port +
"/test?sslContextParametersRef=#sslContextParameters";
super.setUp();
}
@@ -180,12 +178,12 @@ public class WebsocketSSLContextInUriRou
return new RouteBuilder() {
public void configure() {
- from(uriConsumer)
+ from(uri)
.log(">>> Message received from WebSocket Client :
${body}")
.to("mock:client")
.loop(10)
.setBody().constant(">> Welcome on board!")
- .to(uriConsumer);
+ .to(uri);
}
};
}