Class QueryClient
java.lang.Object
|
+----QueryClient
- class QueryClient
- extends Object
QueryClient.java runs MPE program via Telnet and provides GUI front-end.
This is a quick & dirty prototype, but it helps to "get the idea".
It uses the Java Telnet implementation from the Java Telnet Applet
available at "http://www.first.gmd.de/persons/leo/java/Telnet".
-
ch
-
-
host
-
-
ls
-
-
tf
-
-
QueryClient()
-
-
exitProgram()
- Exit host application when user closes window.
-
main(String[])
- Main program opens telnet connection to host, logs on and launches the
MPE program to be interacted with, opens GUI window for the user and
then translates user actions to appropriate transactions with the host
application.
-
performFindAndReport(String)
- Trigger QUERY FIND and parse resulting REPORT, if entries are found
-
performQuery()
- Perform host transaction depending on query type selected by user
host
static HostIO host
ch
static Choice ch
tf
static TextField tf
ls
static List ls
QueryClient
QueryClient()
main
public static void main(String args[]) throws Exception
- Main program opens telnet connection to host, logs on and launches the
MPE program to be interacted with, opens GUI window for the user and
then translates user actions to appropriate transactions with the host
application.
exitProgram
static void exitProgram()
- Exit host application when user closes window.
performQuery
static void performQuery()
- Perform host transaction depending on query type selected by user
performFindAndReport
static void performFindAndReport(String findCmd)
- Trigger QUERY FIND and parse resulting REPORT, if entries are found