org.ifeth.sehr.client.api.driver
Class RASDriver

java.lang.Object
  extended byorg.ifeth.sehr.client.api.driver.ConnectionDriver
      extended byorg.ifeth.sehr.client.api.driver.RASDriver
All Implemented Interfaces:
java.lang.Runnable

public class RASDriver
extends ConnectionDriver

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.

Author:
hansjhaase (adopting JDUN to SEHR)

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

TypeOfDriver

public int TypeOfDriver
Constructor Detail

RASDriver

public RASDriver()
Method Detail

run

public void run()
Description copied from class: ConnectionDriver
To be implemented by driver objects to create a monitoring thread.

Driver must stop running when keepRunning() returns false and clean up all resources before exiting.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class ConnectionDriver

initialize

public void initialize()
Description copied from class: ConnectionDriver
Method to initialize the driver for monitoring its connections

Note: If overriding this method don't forget to add super.initialize in your driver.

Overrides:
initialize in class ConnectionDriver

connect

public int connect()
Connect to SEHR host

Overrides:
connect in class ConnectionDriver

getNotification

public RASDriver.StatusNotification getNotification()

setRASEntry

public void setRASEntry(java.lang.String entry)
Set the RAS entry to dial

Overrides:
setRASEntry in class ConnectionDriver

setRASUsername

public void setRASUsername(java.lang.String username)
Set the user to login at SEHR host, e.g. for a RAS connection

Overrides:
setRASUsername in class ConnectionDriver

setRASPassword

public void setRASPassword(java.lang.String pw)
Set the user's password to login at SEHR host

Overrides:
setRASPassword in class ConnectionDriver