Websphere MQ Everyplace

examples.midp.exampleapp.textapp
Class RegistrationServer

java.lang.Object
  |
  +--examples.midp.exampleapp.textapp.Client
        |
        +--examples.midp.exampleapp.textapp.RegistrationServer
All Implemented Interfaces:
AppController

public class RegistrationServer
extends Client

This class controls the registration server. Since the model handles all the work and user input is minimal, there is very little for this class to do.


Field Summary
static short[] version
           
 
Fields inherited from class examples.midp.exampleapp.textapp.Client
initialPromptMessage
 
Constructor Summary
RegistrationServer()
           
 
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)
          This function is called when the class is run from the commandline.
 void processInput(java.lang.String input)
          This class handles user input.
 
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

version

public static short[] version
Constructor Detail

RegistrationServer

public RegistrationServer()
Method Detail

main

public static void main(java.lang.String[] args)
This function is called when the class is run from the commandline. It creates and starts a new controller.


getNewModel

protected AppModel getNewModel()
Description copied from class: Client
returns a new model. This is used so that classes that extend this class can simply override this function rather than getModel().

Overrides:
getNewModel in class Client
Returns:
AppModel
See Also:
Client.getNewModel()

getQMname

public java.lang.String getQMname()
Description copied from interface: AppController
Returns a name for the queue manager

Specified by:
getQMname in interface AppController
Overrides:
getQMname in class Client
See Also:
Client.getQMname()

processInput

public void processInput(java.lang.String input)
Description copied from class: Client
This class handles user input. If the user enters anything that doesnt match a command, it is sent to the gateway as a message.

Overrides:
processInput in class Client
Parameters:
input - What the user input
Returns:
void
See Also:
Client.processInput(String)

displayHelp

public void displayHelp()
Description copied from class: Client
Displays the help screen to the user.

Overrides:
displayHelp in class Client
Returns:
void
See Also:
Client.displayHelp()

Websphere MQ Everyplace