|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.midp.exampleapp.textapp.Client | +--examples.midp.exampleapp.textapp.GatewayServer
This class acts as the controller for the gateway server.
Very little is required for the gateway server as it is a simple 'if you reveive a message, display it' design. Dealing with user input is the main part of the code. This is done in processInput().
Field Summary | |
static short[] |
version
|
Fields inherited from class examples.midp.exampleapp.textapp.Client |
initialPromptMessage |
Constructor Summary | |
GatewayServer()
|
Method Summary | |
void |
displayHelp()
Displays the help screen to the user. |
protected AppModel |
getNewModel()
returns a new model. |
java.lang.String |
getQMname()
Returns a name for the queue manager |
static void |
main(java.lang.String[] args)
Used to run the controller from the commandline. |
void |
processInput(java.lang.String input)
Available commands are 'help', 'status' and 'quit'. |
Methods inherited from class examples.midp.exampleapp.textapp.Client |
displayStatus, getInput, getModel, initialize, promptFor, run, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Constructor Detail |
public GatewayServer()
Method Detail |
public static void main(java.lang.String[] args)
protected AppModel getNewModel()
Client
getNewModel
in class Client
Client.getNewModel()
public java.lang.String getQMname()
AppController
getQMname
in interface AppController
getQMname
in class Client
Client.getQMname()
public void processInput(java.lang.String input)
processInput
in class Client
input
- What the user input
Client.processInput(String)
public void displayHelp()
Client
displayHelp
in class Client
Client.displayHelp()
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |