|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ifeth.sehr.client.api.SEHRConnectionDriver
Driver for handling different client/server connctions like LAN/WLAN, Dial-Up and others.
Common Usage: Use static method to load the driver and let
SEHRRemote
manage the connection. The
driver itself is an abstract class that will be instanciated here as an
object that includes various methods for onnection control and notification
messages (see ConnectionDriver
).
To improve the flexibility of possible physical links to a SEHR host the
required or prefered driver will be loaded by a class loader. This class is
an layer between the physical connection driver and the requirements of
connections by the SEHR components. Discussed requirements are:
Field Summary |
Fields inherited from interface org.ifeth.sehr.client.api.SEHRConnectionDriverInterface |
COSTCONTROL_NONE, COSTCONTROL_TIME, COSTCONTROL_VOLUME, DRV_ASYNC, DRV_LAN, DRV_RAS, TYPE_ASYNC, TYPE_LAN, TYPE_RAS, TYPE_WLAN |
Constructor Summary | |
SEHRConnectionDriver()
Parameterless constructor. |
|
SEHRConnectionDriver(java.lang.String driverclass)
Constructor for using a specific driver to connect |
Method Summary | |
ConnectionDriver |
getConnectionDriver()
Get currently used driver as class |
java.lang.String |
getDriverclassForName()
Get currently used driver as name (for informational usage only) |
void |
getErrorMessage()
Get error message from notification class of the driver |
void |
getStateMessage()
Get status message from notification class of the driver |
int |
getTypeOfConnection()
Get currently type of driver (for informational usage only) |
static ConnectionDriver |
loadDriver(java.lang.String driverclass)
Load the driver to use for physical connections |
void |
setDriverclassForName(java.lang.String drivername)
Set driver class to use for c/s connections Note: Required on object instances only. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SEHRConnectionDriver()
The class must be set by
setDriverclassForName(String)
before a connection can
be established.
public SEHRConnectionDriver(java.lang.String driverclass)
Method Detail |
public static ConnectionDriver loadDriver(java.lang.String driverclass) throws java.lang.Exception
java.lang.Exception
public ConnectionDriver getConnectionDriver()
public void setDriverclassForName(java.lang.String drivername)
SEHRConnectionDriver
public java.lang.String getDriverclassForName()
public int getTypeOfConnection()
public void getErrorMessage()
public void getStateMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |