aboutsummaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* Handle JSONException and InvalidUIDLSecurityKeyException the same way in ↵Artur Signell2013-04-169-188/+176
| | | | | | PushHandler and UIDLRequestHandler (#11556) Change-Id: Ide3a162bd77fb9b2ec3d44ea4422b5841d19eec8
* Use text/plain instead of application/json (#11610)Artur Signell2013-04-151-1/+1
| | | | Change-Id: Id578d2204f99986b54174022febc3e2d4510a414
* Consider context root redirect when pathInfo is null (#11552)Leif Åstrand2013-04-151-1/+1
| | | | Change-Id: I752b8de4ff3f7288cc6822bfc5a583caa4f27179
* Add isPushRequest() check to VaadinServletService.isOtherRequest() (#11556)Johannes Dahlström2013-04-154-13/+13
| | | | | | | * Prevents VaadinService from creating a new session for push requests * Also unify behaviour when UI is not found in session (log and return) Change-Id: Iea0e4ae5e0b5fa81404f688aa6d92d16343ebd26
* Ignore duplicate ?restartApplication during UI init (#11587)Leif Åstrand2013-04-122-4/+24
| | | | Change-Id: I8d3519bbf0ec47ec66bf08faea15ca00eb45af66
* Make AtmosphereResource field transient (#11512)Leif Åstrand2013-04-122-1/+7
| | | | | | | Also add assert to catch theoretical case when old push connection is still active even though session has been deserialized Change-Id: I5b11a4ef273e36e90d97bfa84bf7e90bc2395fd7
* Fix minor issues raised in #111 code reviewJohannes Dahlström2013-04-111-0/+2
| | | | Change-Id: Ibca25fea1d08e98271e68e3d4703afe5aeaae182
* Use longer padding for streaming requests to avoid IE8 issues (#11573)Leif Åstrand2013-04-111-0/+14
| | | | Change-Id: Ib9fd7634065719146a492318916a4f7a1527e2a0
* Set character encoding before writing any response (#11501)Artur Signell2013-04-111-2/+2
| | | | Change-Id: I2a319d2b970d5d0953ece3717af17057c32f2041
* Implemented poll interval for UI (#11495)Leif Åstrand2013-04-101-0/+34
| | | | Change-Id: Ic56b0123970f18e282c75d67863569ac55c72ea8
* Added SharedUtil for helpers shared by client and serverLeif Åstrand2013-04-102-13/+14
| | | | Change-Id: Ie289e8eefd962631a43f35dbb47fa192fcf60abf
* Fixed tests to use a real DeploymentConfiguration instanceArtur Signell2013-04-0914-14/+108
| | | | Change-Id: I1c6f74bfcefda7843a55d149a5ecd33ae4c2ebf2
* Don't bind PushConnection API to Atmosphere (#11551)Leif Åstrand2013-04-094-107/+146
| | | | Change-Id: Iaf04069c724a603b15fbf09778d2cec983432272
* Fix missing or invalid copyright headersLeif Åstrand2013-04-093-3/+29
| | | | Change-Id: I75e8713548a93b29fe97ab6e9aaf8cb65ab611be
* Show message for missing Atmosphere or version mismatch (#11499)Leif Åstrand2013-04-093-0/+64
| | | | Change-Id: I05ed55319092248db4a3f2d0975f918c9176a6c6
* Don't initialize PushConnection by default (#11512)Leif Åstrand2013-04-081-1/+1
| | | | Change-Id: I22a7524dd213058fe4a54852a2f3c67e8989b538
* Rendering a Tree with icons fails if no alternate text is given (#11511)michael2013-04-081-1/+2
| | | | Change-Id: I0ce84b77d5c1590988c2b9472bcf820a959cfd62
* Implement range for date field (#6241)johan2013-04-081-0/+175
| | | | Change-Id: I34458f676fede39e1992316cbed8d62193ce8509
* Push if there are dirty connectors, avoid push if there are NOT dirty connectorsArtur Signell2013-04-071-1/+1
| | | | Change-Id: Iebac314565e443eb67d206c755e2d4bb385cffe8
* Global code reformatLeif Åstrand2013-04-0535-29/+104
| | | | Change-Id: I4b3c74ede518aa2712038d1451974a93cdecabc2
* Do not push only meta data to the client (#11490)Artur Signell2013-04-052-1/+15
| | | | Change-Id: I589ede89583be90e99fbed6fe5c0c6c1ac4d7c0a
* Made vaadin-server jar not depend on Atmosphere (#11492)Artur Signell2013-04-051-1/+1
| | | | Change-Id: Ib57ce4f4336df2806f58a5d65bda61907e76591a
* WAI-ARIA functions for Tree (#11389)michaelvogt2013-04-041-0/+51
| | | | | | All to navigate the tree with an assisitve device Change-Id: I531cefc95d7a720caf69aca579549e5a497ad586
* Wrap the atmosphere request instead of reusing an old request which might no ↵Artur Signell2013-04-042-19/+8
| | | | | | longer be available (#11489) Change-Id: I0623b056a657c341ec367d0249e5f66840119f87
* Include atmosphere javascript files into vaadin-server (#111)Artur Signell2013-04-041-0/+2
| | | | Change-Id: Ib5db34e9d09649b72dc824d491f699e4f6b7891b
* Maximize Restore for Window #3400Pekka Hyvönen2013-04-041-6/+141
| | | | Change-Id: I164ae83bd6cf98f7a3d7e76d8e717a56e8cb5183
* Server push (#111)Johannes Dahlström2013-04-0417-23/+634
| | | | | | | | | | | | | | | | * 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
* Updated javadoc to mention runSafely in addition to the manual locking patternArtur Signell2013-04-031-4/+21
| | | | Change-Id: Ia0ddf6149641b8dc609c5c6e53ad569c5bc9c555
* Write JSON response to a buffer instead of directly to the output stream ↵Artur Signell2013-04-032-33/+52
| | | | | | | | | | (#11424, #11156) * Allows safe abortion of JSON output and writing a critical notification instead * Unifies json writing for init request and other UIDL requests * Ensures headers are written before the response Change-Id: Idd8acb672aac8716b727701d6c057bbe58f50993
* Reworked fix for ignoring /APP/ (#11192)Artur Signell2013-04-032-10/+1
| | | | | | | | * Fixed potential NPE by using existing helper method * Pass /APP/ urls also to session handlers as at least GlobalResourceHandler requires it * Fixed test to test /APP/ instead of /APP Change-Id: I8d913e6a5509c63f8e47813fce5751f5279ed4fc
* Refactored how all requests are handled by VaadinServlet and VaadinPortlet ↵Artur Signell2013-04-0318-570/+658
| | | | | | | | | | | | | (#11192) * Handling is now based on a list of RequestHandlers in VaadinService * Request handling logic has been moved to VaadinService * Users can customize the list by adding own (service level) request handlers * For users specific request handlers you can still use the request handlers in VaadinSession * Deprecated RequestType - all handlers are given the opportunity to handle a request until one of them chooses to handle it. RequestType makes no sense as it does not tell which handler will handle the request. * Removed serveStaticResource which has never been used Change-Id: Ia7d088535e46430ca8adf631d3f1dd944b9d51e2
* Added example on how to get time displayed in the browser (#9033)Artur Signell2013-04-031-0/+11
| | | | Change-Id: I349120b3e1ead2428009b7a0d77ec30a775eb34a
* Do not clean connectors before client rpc is sent (#11192, #7891)Artur Signell2013-04-031-6/+5
| | | | Change-Id: I9b0f6f3fb48cad8f870bfa9ccfe99a5725f24b8e
* Integrate Calendar into core #11079John Ahlroos2013-04-0320-0/+5039
| | | | | | Everything else integrated, except TB3 tests (ticket #11090, old TB2 tests used instead) Change-Id: If1700d7680a6c0a45f84d6e3c7b80e6536da78c8
* Implemented changes to CSS injection based on API review #5500John Ahlroos2013-04-031-57/+47
| | | | Change-Id: I2bed5f5a5c3cfc6b97e94cbd218bb06f446c7325
* Enable setting loading indicator delays from the server (#7448)Artur Signell2013-04-032-0/+171
| | | | | | * Refactored LoadingIndicator to a separate class on client side to enable customization and to remove clutter from ApplicationConnection Change-Id: I12e94294beed9c65a5710bdfe2486bc0f1b92bd9
* Made is possible to configure tooltip on the server (#8065)Artur Signell2013-04-032-0/+251
| | | | Change-Id: I35af6df1dfa75ef1de1268eb630fc0f4b9306170
* Fixed minimal (empty hashmap) memory leak on redeploy (#9993)Artur Signell2013-04-032-9/+171
| | | | Change-Id: I2b3f83220070f1f46730d956abb24ba9edf02f20
* WAI-ARIA field corrections (#11407)michaelvogt2013-04-021-0/+20
| | | | | | Implementation of suggestions from usage test by an screen reader user Change-Id: If02512f3d4ee60e3e115023af9d9e600dc11321a
* Show session expired instead of throwing exception (#4252)Artur Signell2013-04-021-1/+13
| | | | Change-Id: Ic3ba079d91293fd804c3c95d6cc19fc6e3cf82cc
* Enable setting default alignment for VerticalLayout, HorizontalLayout, ↵Artur Signell2013-04-025-1/+181
| | | | | | GridLayout (#11421) Change-Id: I56b14a6a027dc700748f2bd7219b47e1134bb56a
* Use updated CurrentInstance API (#9945)Leif Åstrand2013-04-021-4/+3
| | | | Change-Id: I6576c4be4d6c909ce95e8b48904529477ae755f9
* Fixed locking issue in testsArtur Signell2013-04-0214-21/+61
| | | | Change-Id: I3706cfa46f82615b8cc677bcaaa207d5ab05bf40
* Exclude ColorPickerPreview as it has no no-arg constructorArtur Signell2013-04-021-0/+2
| | | | Change-Id: I245aa609b2cce17cd5116be1b80f2b9c437b975d
* Fixed locking and cleaned up error handling in FileUploadHandler (#10569)Artur Signell2013-04-021-64/+120
| | | | Change-Id: I6ed72b866ee4ca28957726f8dbe0bda6316e8685
* Fixed locking problem with serviceException (#10569)Artur Signell2013-04-022-35/+56
| | | | Change-Id: I363ac3508f558769a79098572cb268cadfc4b1e2
* Fixed locking in RequestHandlers and documented that RequestHandlers are ↵Artur Signell2013-04-0222-177/+333
| | | | | | | | | | called without locking (#9945) * Added SynchronizedRequestHandler which locks the session for the whole request * Made request handlers which do not do do heavy IO implement SynchronizedRequestHandler * Fixed locking for GlobalResourceHandler, ConnectorResourceHandler, PublishedFileHandler Change-Id: I0e7b442a9392828f1930685f194dc4f898d0f525
* Ensure session is locked during cleanup (#10569)Artur Signell2013-04-022-22/+74
| | | | | | * At the same time ensures request timer handling is done while session is locked (#10108) Change-Id: Ifc36e1ac66d02e25fe98616319c014137bd94c10
* Correctly set thread locals when session times out (#11361, #10995)Artur Signell2013-04-022-10/+147
| | | | Change-Id: I5051cef344f03af276be24a28471a6d6c15b0da6
* Moved request start/end handling to VaadinService (#11400)Artur Signell2013-04-024-126/+94
| | | | | | * VaadinService.requestStart/requestEnd is called for all requests, including static resource requests Change-Id: Ic19f33f069d0b4f4127fdafc7b5c3a2fa1a3b5dc