diff options
author | Olli Tietäväinen <ollit@vaadin.com> | 2017-08-10 16:07:42 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-08-10 16:07:42 +0300 |
commit | 97fa55d3d447098bbf605054b1ccfa08a848dc3e (patch) | |
tree | ec2310b70cfd0167dfed9e398716e04df43569fc /shared | |
parent | 62d50a66e0216eb5210e93ef39cce8dbdde0ca9f (diff) | |
download | vaadin-framework-97fa55d3d447098bbf605054b1ccfa08a848dc3e.tar.gz vaadin-framework-97fa55d3d447098bbf605054b1ccfa08a848dc3e.zip |
Use separate identifier for push connections (#9150)
By using a separate id we can avoid sending the sessions
CSRF token as a GET parameter when initializing a push connection.
Cherry-picked from #8700 to the 7.7 branch.
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/main/java/com/vaadin/shared/ApplicationConstants.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java b/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java index 8ce9cef2d5..2a2d4c8ccb 100644 --- a/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java +++ b/shared/src/main/java/com/vaadin/shared/ApplicationConstants.java @@ -49,6 +49,8 @@ public class ApplicationConstants implements Serializable { public static final String UIDL_SECURITY_TOKEN_ID = "Vaadin-Security-Key"; + public static final String UIDL_PUSH_ID = "Vaadin-Push-ID"; + @Deprecated public static final String UPDATE_VARIABLE_INTERFACE = "v"; @Deprecated @@ -109,6 +111,13 @@ public class ApplicationConstants implements Serializable { public static final String CSRF_TOKEN_PARAMETER = "v-csrfToken"; /** + * Name of the parameter used to transmit the push connection identifier. + * + * @since 7.7.11 + */ + public static final String PUSH_ID_PARAMETER = "v-pushId"; + + /** * The name of the parameter used to transmit RPC invocations * * @since 7.2 |