|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.beans.AbstractBean
org.jdesktop.ws.BaseService
org.jdesktop.ws.AbstractHttpService
public abstract class AbstractHttpService
An abstact implementation of an HTTP based service. This BaseService extension provides a Session object to subclasses for working with HTTP based services such as REST or some SOAP operations. This class handles the job of synchronizing state between a Session and the State for this class.
| Constructor Summary | |
|---|---|
protected |
AbstractHttpService()
Creates a new AbstractHttpService which is tied to one Session. |
| Method Summary | |
|---|---|
protected abstract SwingWorker |
createWorker()
|
protected void |
doAbort()
Invoked by this AbstractHttpService, this method performs the actual chores behind aborting the asynchronous process. |
protected void |
doSend()
Invoked by this AbstractHttpService, this method performs the actual send operation. |
protected Session |
getSession()
Gets the session of this AbstractHttpService. |
protected void |
setState(State s)
Overridden to ensure that the state of the Session is kept in sync with the state of this AbstractHttpService. |
| Methods inherited from class org.jdesktop.ws.BaseService |
|---|
abort, addAbortListener, addDoneListener, addFailureListener, done, fail, fireOnEDT, getProgress, getState, removeAbortListener, removeDoneListener, removeFailureListener, send, setProgress |
| Methods inherited from class org.jdesktop.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractHttpService()
| Method Detail |
|---|
protected void setState(State s)
setState in class BaseServices - protected Session getSession()
protected abstract SwingWorker createWorker()
protected void doSend()
BaseService
doSend in class BaseServiceprotected void doAbort()
BaseService
doAbort in class BaseService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||