org.jdesktop.ws
[Java] Class HttpService.HttpWorker
java.lang.Object
javax.swing.SwingWorker
org.jdesktop.ws.HttpService.HttpWorker
private static final class HttpService.HttpWorker
extends SwingWorker
Instances of this class actually perform the request/response cycle
in the background. When a task is aborted, "cancel" is called on the
worker and then the worker reference becomes null. The worker might
still actually be working in the background, but for all intents and
purposes is considered to have been garbage collected.
Therefore, it is important that in this class the various methods
(aborted, failed, etc) on BaseService are not called if this is not the
current worker.
|
Methods inherited from class SwingWorker
|
| run, get, get, getState, execute, cancel, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, getProgress, isCancelled, isDone, getPropertyChangeSupport, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
svc
private HttpService svc
-
HttpService.HttpWorker
HttpService.HttpWorker(HttpService svc)
-
doInBackground
// alr
protected Response doInBackground()
- inheritDoc:
done
protected void done()
- inheritDoc:
Groovy Documentation