org.ifeth.sehr.client.api
Class SEHRModules

java.lang.Object
  extended byorg.ifeth.sehr.client.api.SEHRModules

public class SEHRModules
extends java.lang.Object

This object lists all modules of a SEHR host.

The use case of this class is to get informations about installed modules on a SEHR host. The module name or title may be from interest in menus or selection lists. This object is no administration tool with write access to any module related table of the zone server.
Note: This class contains a main method to run a test.

Author:
hansjhaase

Constructor Summary
SEHRModules()
          Parameterless constructor
SEHRModules(SEHRRemote session)
          Constructor using an already initialized session based on a SEHRRemote object
SEHRModules(java.lang.String ip, int port)
          Constructor with parameters to connect to a SEHR server by LAN
 
Method Summary
 boolean connect()
          Connect this object to the SEHR host Note: This objects requires the SEHRREmote object which mangages the connections from a clien tto host.
 java.lang.String getSDOHURL(int modid)
          Get URL of data object handler of given module
 java.lang.String getSDOHURLOfServiceID(int svid)
           
 java.util.Vector listModules()
          Get list of installed service modules / applications on a SEHR host
static void main(java.lang.String[] args)
          For testing purposes this class should be executed within the workspace Eclipse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEHRModules

public SEHRModules()
Parameterless constructor


SEHRModules

public SEHRModules(java.lang.String ip,
                   int port)
Constructor with parameters to connect to a SEHR server by LAN


SEHRModules

public SEHRModules(SEHRRemote session)
Constructor using an already initialized session based on a SEHRRemote object

Method Detail

listModules

public java.util.Vector listModules()
Get list of installed service modules / applications on a SEHR host


getSDOHURLOfServiceID

public java.lang.String getSDOHURLOfServiceID(int svid)

getSDOHURL

public java.lang.String getSDOHURL(int modid)
Get URL of data object handler of given module


connect

public boolean connect()
Connect this object to the SEHR host

Note: This objects requires the SEHRREmote object which mangages the connections from a clien tto host. If the SEHRRemote object is not connected it will be done here.
This object sets a permanent connection due to prepared statements!


main

public static void main(java.lang.String[] args)
For testing purposes this class should be executed within the workspace Eclipse.

Instruction:
1)
To test the module get a valid IP/Port pair of a running SEHR server and modify parameters below
2)
Run this module