Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SampleCommandHandler Class Reference

Inheritance diagram for SampleCommandHandler:

Inheritance graph
[legend]
Collaboration diagram for SampleCommandHandler:

Collaboration graph
[legend]
List of all members.

Detailed Description

Sample class SampleCommandHadler to show how to write own command handlers.

Definition at line 362 of file RemoteServer.java.

Public Methods

String handleCommand (String comm)
 Method handleCommand processing very simple command 'hello' which returns 'Hello world!' string.

String help ()
 Method help returns description about provided command.

String help (String comm)
 Method help should return detailed description about given command.

CommandHandlerIfc getInstance ()
 Method getInstance creates new instance of this command handler.


Member Function Documentation

CommandHandlerIfc getInstance   [inline]
 

Method getInstance creates new instance of this command handler.

Returns:
a CommandHandlerIfc value new implementation of this interface.

Implements CommandHandlerIfc.

Definition at line 413 of file RemoteServer.java.

String handleCommand String    comm [inline]
 

Method handleCommand processing very simple command 'hello' which returns 'Hello world!' string.

Parameters:
comm a String command put by the user.
Returns:
a String value contained command processing results.

Implements CommandHandlerIfc.

Definition at line 371 of file RemoteServer.java.

String help String    comm [inline]
 

Method help should return detailed description about given command.

This implementation returns only empty string.

Parameters:
comm a String value keeps command for detailed description about.
Returns:
a String value - detailed description about given command. Empty string this time.

Implements CommandHandlerIfc.

Definition at line 403 of file RemoteServer.java.

String help   [inline]
 

Method help returns description about provided command.

Returns:
a String value contains description of all commands provided by this command handler.

Implements CommandHandlerIfc.

Definition at line 387 of file RemoteServer.java.


The documentation for this class was generated from the following file:
Generated on Thu Dec 19 21:00:48 2002 for WTTools - Remote Console by doxygen1.3-rc2