|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ifeth.sehr.client.api.driver.ConnectionDriver org.ifeth.sehr.client.api.driver.RASDriver
This is a template using the RAS libray JDUN as connection driver
Because all drivers have their own methods this is a wrapper class which
converts the methods of a driver to make them usable by the SEHR connection
manager.
The methods below don't contain any special code. If you are using your
favorite package for IP connections you have to implement the wrapping code.
Nested Class Summary | |
class |
RASDriver.StatusNotification
|
Field Summary | |
int |
TypeOfDriver
|
Fields inherited from class org.ifeth.sehr.client.api.driver.ConnectionDriver |
Log |
Constructor Summary | |
RASDriver()
|
Method Summary | |
int |
connect()
Connect to SEHR host |
RASDriver.StatusNotification |
getNotification()
|
void |
initialize()
Method to initialize the driver for monitoring its connections Note: If overriding this method don't forget to add super.initialize in your driver.
|
void |
run()
To be implemented by driver objects to create a monitoring thread. |
void |
setRASEntry(java.lang.String entry)
Set the RAS entry to dial |
void |
setRASPassword(java.lang.String pw)
Set the user's password to login at SEHR host |
void |
setRASUsername(java.lang.String username)
Set the user to login at SEHR host, e.g. for a RAS connection |
Methods inherited from class org.ifeth.sehr.client.api.driver.ConnectionDriver |
discardConnectionLayer, disconnect, getConnectionInfo, getConnectionLayer, getConnectionLayers, getConnections, getLastConTime, getNotifiation, getTotalConTime, getTypeOfDriver, newConnection, notifyListeners, registerConnectionListener, start, stop, switchConnectionStatus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int TypeOfDriver
Constructor Detail |
public RASDriver()
Method Detail |
public void run()
ConnectionDriver
Driver must stop running when keepRunning()
returns false
and clean up all resources before exiting.
run
in interface java.lang.Runnable
run
in class ConnectionDriver
public void initialize()
ConnectionDriver
Note: If overriding this method don't forget to add
super.initialize
in your driver.
initialize
in class ConnectionDriver
public int connect()
connect
in class ConnectionDriver
public RASDriver.StatusNotification getNotification()
public void setRASEntry(java.lang.String entry)
setRASEntry
in class ConnectionDriver
public void setRASUsername(java.lang.String username)
setRASUsername
in class ConnectionDriver
public void setRASPassword(java.lang.String pw)
setRASPassword
in class ConnectionDriver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |