summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-04-17 22:02:49 +0300
committerArtur Signell <artur@vaadin.com>2015-07-13 17:19:07 +0300
commit72b36bbe2d18ee1adc037ba0d4f2093d23412c4f (patch)
treecef1f19b770c5cdbf0835c0a223efc038ad70255 /shared
parent90b4c678d139fc4927811cdcad87d0b91eca98b6 (diff)
downloadvaadin-framework-72b36bbe2d18ee1adc037ba0d4f2093d23412c4f.tar.gz
vaadin-framework-72b36bbe2d18ee1adc037ba0d4f2093d23412c4f.zip
Use counter in client to server messages to avoid duplicate handling (#11733)
An server message id counter is included in every client to server message and an expected id is included in every server to client message. This makes it safe to re-send any message when the client is not 100% sure the server has received the message, without having to worry about double handling on the server side. Change-Id: I840cc04829fc2491f35a0e6f98f07eaf46b1ea42
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ApplicationConstants.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ApplicationConstants.java b/shared/src/com/vaadin/shared/ApplicationConstants.java
index 3431387b77..8613c9a1d2 100644
--- a/shared/src/com/vaadin/shared/ApplicationConstants.java
+++ b/shared/src/com/vaadin/shared/ApplicationConstants.java
@@ -133,6 +133,12 @@ public class ApplicationConstants implements Serializable {
public static final String SERVER_SYNC_ID = "syncId";
/**
+ * The name of the parameter used to transmit the id of the client to server
+ * messages.
+ */
+ public static final String CLIENT_TO_SERVER_ID = "clientId";
+
+ /**
* Default value to use in case the security protection is disabled.
*/
public static final String CSRF_TOKEN_DEFAULT_VALUE = "init";