|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ifeth.sehr.client.api.SEHRRemote org.ifeth.sehr.client.api.SessionHandler
Session and remote connection object.
This class extends SEHRRemote object to make the SEHR-API more
comfortable. SEHR GUI applications should use this SEHRRemote object
instance to handle the connection.
A session commonly starts with the 'binding' followed by 'connect'. A
session ends by using 'close' or 'shutdown'. The 'shutdown' closes all
connections and exits the application.
Note: 'Don't use 'disconnect'; this may destroy ongoing
transfers. The 'close' method let the background SEHR thread close the
connection after finishing transfers.
Field Summary | |
static java.util.logging.Logger |
Log
|
java.util.Vector |
netservices
|
java.util.TreeMap |
sehrcategories
|
java.util.Vector |
usrservices
Runtime cache of SEHR user services |
Fields inherited from interface org.ifeth.sehr.client.api.SEHRRemoteInterface |
DBPORT, DBUSER, DBUSERPASS, SEHRHOST, sehrkeyphrase, SEHRPORT |
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 | |
SessionHandler(java.lang.Object model)
Constructor initializing a session object. |
Method Summary | |
void |
bindSEHRServer()
Binds session to SEHR service in host either by RAS or LAN |
void |
close()
Close session but keep application alive until all transfers are made. |
boolean |
connect()
Connect to server using defined ip and port and receive settings |
void |
exit()
Just a handy method, same as shutdown() |
java.lang.String |
getAccount()
|
java.lang.Object |
getModel()
Get model object... |
java.lang.String |
getPassword()
|
SEHRServices |
getSEHRServicesObject()
Get an instance of the SEHRService object itself |
java.lang.String |
getUser()
|
java.util.Vector |
getUserServices()
Get a list of services of the logged in user |
int |
getUsrid()
|
boolean |
isAuthenticated()
|
boolean |
isConnection()
Checks connection state |
boolean |
isDial()
Get the flag if 'LAN' or 'RAS' |
boolean |
isDirtyTransfer()
Get the flag if sth. to transfer is marked |
void |
setAccount(java.lang.String account)
|
void |
setAuthenticated(boolean isAuthenticated)
|
void |
setConnection(boolean b)
Flags manually the connection state; set this only if you're shure |
void |
setDial(boolean isDial)
Set connection type 'LAN' or 'RAS'(dial=true) for running mode |
void |
setDirtyTransfer(boolean dirtyTransfer)
Set the flag to mark that there is sth. to transfer |
void |
setPassword(java.lang.String pw)
|
void |
setUser(java.lang.String user)
|
void |
setUsrid(int usrid)
|
void |
shutdown()
Close application like 'close' but listen to thread and display splash. |
void |
startSessionListener()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ifeth.sehr.client.api.SEHRRemoteInterface |
bindSEHRServer, bindSEHRServer, bindSEHRServer, initSEHRDataSource |
Field Detail |
public java.util.Vector usrservices
public java.util.Vector netservices
public java.util.TreeMap sehrcategories
public static java.util.logging.Logger Log
Constructor Detail |
public SessionHandler(java.lang.Object model)
Method Detail |
public void startSessionListener()
public void bindSEHRServer()
public boolean connect()
SEHRRemoteInterface
connect
in interface SEHRRemoteInterface
connect
in class SEHRRemote
public boolean isConnection()
public void setConnection(boolean b)
public boolean isDial()
public void setDial(boolean isDial)
public java.lang.Object getModel()
public int getUsrid()
public void setUsrid(int usrid)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public void setPassword(java.lang.String pw)
public java.lang.String getPassword()
public java.lang.String getAccount()
public void setAccount(java.lang.String account)
public boolean isAuthenticated()
public void setAuthenticated(boolean isAuthenticated)
public SEHRServices getSEHRServicesObject()
public java.util.Vector getUserServices()
public boolean isDirtyTransfer()
public void setDirtyTransfer(boolean dirtyTransfer)
public void close()
Note: Use shutdown()
to close session
and application.
public void exit()
shutdown()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |