Groovy Documentation

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.


Field Summary
private HttpService svc

 
Constructor Summary
HttpService.HttpWorker(HttpService svc)

 
Method Summary
protected Response doInBackground()

@inheritDoc

protected void done()

@inheritDoc

 
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
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

svc

private HttpService svc


 
Constructor Detail

HttpService.HttpWorker

HttpService.HttpWorker(HttpService svc)


 
Method Detail

doInBackground

// alr
protected Response doInBackground()
inheritDoc:


done

protected void done()
inheritDoc:


 

Groovy Documentation