|Jetty - Async callbacks [message #1701305]
||Fri, 10 July 2015 18:13
| Hugh Gleaves
Registered: July 2015
I'm looking at an app which uses Jetty 5.1.10 (yes I know, a little out of date)|
I'm unfamiliar with this API (and pretty new to Java) but I'd like to know if there's a way to get this app to be able to send a response (back to the client browser) asynchronously, so that a callback runs once all data has been sent over the wire.
The app basically offers an "shutdown" link that stops the app but we cant display a nice "goodbye" type page because closing the app happens before all data is sent.
I can see that Jetty (seems to be) is async internally and wonder if this capability is exposed in any way?
(I can see an interface named OutputObserver but from glancing at this it seems to support just a handful of actions - none of which seem to relate to asynchronous completions).
Powered by FUDForum
. Page generated in 0.03051 seconds