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".


Variable Index

 o ch
 o host
 o ls
 o tf

Constructor Index

 o QueryClient()

Method Index

 o exitProgram()
Exit host application when user closes window.
 o 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.
 o performFindAndReport(String)
Trigger QUERY FIND and parse resulting REPORT, if entries are found
 o performQuery()
Perform host transaction depending on query type selected by user

Variables

 o host
 static HostIO host
 o ch
 static Choice ch
 o tf
 static TextField tf
 o ls
 static List ls

Constructors

 o QueryClient
 QueryClient()

Methods

 o 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.

 o exitProgram
 static void exitProgram()
Exit host application when user closes window.

 o performQuery
 static void performQuery()
Perform host transaction depending on query type selected by user

 o performFindAndReport
 static void performFindAndReport(String findCmd)
Trigger QUERY FIND and parse resulting REPORT, if entries are found