All Packages Class Hierarchy This Package Previous Next Index
Class ch.swisslife.ibgm.mc2.InputChannel
java.lang.Object
|
+----ch.swisslife.ibgm.mc2.InputChannel
- public class InputChannel
- extends Object
Implements an input channel as an interface between applet and cgi script.
It communicates with the cgi script over the following protocoll:
Target=XXXXXXXXXXXXXXX\n
option1= YYYYYYYYYYYYYYY\n
option2=ZZZZZZZZZZZZZZZ\n
and so on...
It means that first comes the Target name and then all the entries for each target.
So it is always clear which target is active. The procotol is human readable, which makes it
easier to debug.
It uses a URLConnection for the communication, which means that the data is transfered as
plain text from the web server. This class parses it, creates a Cfg object an fills the data in.
-
URL_OF_CGI
-
-
InputChannel(String, String, String)
- Constructor for the InputChannel.
-
getFromCgi(String, String)
- Gets the data from the cgi and feeds it into cfg file
URL_OF_CGI
public String URL_OF_CGI
InputChannel
public InputChannel(String cfgreader,
String workdir,
String icondir)
- Constructor for the InputChannel. Instantiates a Cfg file.
- Parameters:
- Workdir - String containing the WorkDir
- Icondir - String containing the IconDir
getFromCgi
public Cfg getFromCgi(String device,
String url)
- Gets the data from the cgi and feeds it into cfg file
- Parameters:
- device - String to determine if a device or file is to be inspected
- url - String with the name or url of the devce/file
- Returns:
- Cfg with all the data in it
All Packages Class Hierarchy This Package Previous Next Index