]> source.dussan.org Git - vaadin-framework.git/commit
Server push (#111)
authorJohannes Dahlström <johannesd@vaadin.com>
Wed, 27 Feb 2013 12:33:04 +0000 (14:33 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 4 Apr 2013 12:46:42 +0000 (12:46 +0000)
commit69def694d5d98f518ad08c039195fd2ac8781d2f
tree8ec221cf013607180bf08b65ea189d44cd9dda49
parent008d51dba378c2feb57bd5d30550561567f3f91a
Server push (#111)

* Asynchronous bidirectional communication
* Use Atmosphere as a backend
* Use websockets if available, fallback to HTTP streaming
* Push mode (disabled, manual, automatic)
  * Configurable via servlet parameter pushMode
  * Disabled: The default; regular AJAX communication
  * Manual: Need explicit UI.push() call
  * Automatic: push all UIs in session when lock released
* UI.push()
  * Push pending state and RPC to client asynchronously
  * Must hold session lock when invoking

Change-Id: Idb5978ac81f7ff1e66665df4e3f96e29e4c419d4
25 files changed:
WebContent/VAADIN/atmosphere.min.js [new file with mode: 0644]
WebContent/VAADIN/portal.min.js [new file with mode: 0644]
client/src/com/vaadin/client/ApplicationConfiguration.java
client/src/com/vaadin/client/ApplicationConnection.java
client/src/com/vaadin/client/communication/PushConnection.java [new file with mode: 0644]
server/ivy.xml
server/src/com/vaadin/server/BootstrapHandler.java
server/src/com/vaadin/server/Constants.java
server/src/com/vaadin/server/DefaultDeploymentConfiguration.java
server/src/com/vaadin/server/DeploymentConfiguration.java
server/src/com/vaadin/server/ServletPortletHelper.java
server/src/com/vaadin/server/VaadinService.java
server/src/com/vaadin/server/VaadinServletService.java
server/src/com/vaadin/server/VaadinSession.java
server/src/com/vaadin/server/communication/MetadataWriter.java
server/src/com/vaadin/server/communication/PushConnection.java [new file with mode: 0644]
server/src/com/vaadin/server/communication/PushHandler.java [new file with mode: 0644]
server/src/com/vaadin/server/communication/PushRequestHandler.java [new file with mode: 0644]
server/src/com/vaadin/server/communication/UIInitHandler.java
server/src/com/vaadin/server/communication/UidlRequestHandler.java
server/src/com/vaadin/server/communication/UidlWriter.java
server/src/com/vaadin/ui/UI.java
shared/src/com/vaadin/shared/ApplicationConstants.java
shared/src/com/vaadin/shared/communication/PushMode.java [new file with mode: 0644]
uitest/ivy.xml