summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-02-12 15:49:31 +0200
committerLeif Åstrand <leif@vaadin.com>2014-02-12 15:49:49 +0200
commit42f2387165471d08bbd24d4c3ae4a271d2cda4c5 (patch)
tree4418a7610edf326d308f65ee0d79d4d09c341a93 /uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java
parent50381a619458017d69b044435a22fae457a5d4c1 (diff)
parent40e07d0172532ebf5750b8c2aab5ec892e42cdab (diff)
downloadvaadin-framework-42f2387165471d08bbd24d4c3ae4a271d2cda4c5.tar.gz
vaadin-framework-42f2387165471d08bbd24d4c3ae4a271d2cda4c5.zip
Merge remote-tracking branch 'origin/master' into grid
Change-Id: I8f1f412eeb450688bba58b715eba6db9e4ae43ae
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java')
-rw-r--r--uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java b/uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java
new file mode 100644
index 0000000000..bbb7895f20
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/push/BasicPushLongPolling.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2000-2013 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.push;
+
+import com.vaadin.annotations.Push;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.shared.ui.ui.Transport;
+import com.vaadin.shared.ui.ui.UIState.PushConfigurationState;
+
+@Push(transport = Transport.LONG_POLLING)
+public class BasicPushLongPolling extends BasicPush {
+
+ @Override
+ public void init(VaadinRequest request) {
+ super.init(request);
+ // Don't use fallback so we can easier detect if long polling fails
+ getPushConfiguration().setParameter(
+ PushConfigurationState.FALLBACK_TRANSPORT_PARAM, "none");
+ }
+
+}