summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/communication/AtmospherePushConnection.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
index 158638a5ec..698ce3be45 100644
--- a/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
+++ b/client/src/com/vaadin/client/communication/AtmospherePushConnection.java
@@ -175,8 +175,13 @@ public class AtmospherePushConnection implements PushConnection {
config.setStringValue("logLevel", "debug");
}
for (String param : pushConfiguration.parameters.keySet()) {
- config.setStringValue(param,
- pushConfiguration.parameters.get(param));
+ String value = pushConfiguration.parameters.get(param);
+ if (value.equalsIgnoreCase("true")
+ || value.equalsIgnoreCase("false")) {
+ config.setBooleanValue(param, value.equalsIgnoreCase("true"));
+ } else {
+ config.setStringValue(param, value);
+ }
}
if (pushConfiguration.pushUrl != null) {
url = pushConfiguration.pushUrl;
@@ -440,6 +445,16 @@ public class AtmospherePushConnection implements PushConnection {
this[key] = value;
}-*/;
+ protected final native boolean getBooleanValue(String key)
+ /*-{
+ return this[key];
+ }-*/;
+
+ protected final native void setBooleanValue(String key, boolean value)
+ /*-{
+ this[key] = value;
+ }-*/;
+
}
public static class AtmosphereConfiguration extends AbstractJSO {