All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tc.message.handler.client.ResultMessageHandler

java.lang.Object
   |
   +----connection.MessageHandler
           |
           +----tc.message.handler.client.ResultMessageHandler

public class ResultMessageHandler
extends MessageHandler
ResultMessageHandler handles ResultMessages sent from the server to the client.

Version:
0.30, 1998/04/01
Author:
FRED development team, Antti Viljamaa, Jukka Viljamaa
See Also:
MessageHandler, ResultMessage

Variable Index

 o client
The client whose status line is to be updated according to the received ResultMessages.

Constructor Index

 o ResultMessageHandler(ConnectionManager, Client, MessageHandler)
Initializes the ResultMessageHandler with the given arguments.

Method Index

 o getClient()
Gets the client whose status line is to be updated according to the received ResultMessages.
 o handle(Message)
This method handles ResultMessage objects others are redirected onwards.
 o setClient(Client)
Sets the client whose status line is to be updated according to the received ResultMessages.

Variables

 o client
 private Client client
The client whose status line is to be updated according to the received ResultMessages.

Constructors

 o ResultMessageHandler
 public ResultMessageHandler(ConnectionManager cm,
                             Client c,
                             MessageHandler successor)
Initializes the ResultMessageHandler with the given arguments.

Parameters:
cm - The connection manager who received the message and passed it to this handler. Usually any response messages to the peer are sent through this same connection manager.
c - The client whose status line is to be updated according to the received ResultMessages.
successor - The next message handler in the handler chain (if any).

Methods

 o handle
 public boolean handle(Message m)
This method handles ResultMessage objects others are redirected onwards.

Parameters:
m - The message to be handled. If it is an instance of class ResultMessage, the status line of the client is set according to the message. Otherwise the message is redirected to the next handler.
Returns:
true if the message was succesfully handled.
Overrides:
handle in class MessageHandler
 o getClient
 private Client getClient()
Gets the client whose status line is to be updated according to the received ResultMessages.

 o setClient
 private void setClient(Client c)
Sets the client whose status line is to be updated according to the received ResultMessages.


All Packages  Class Hierarchy  This Package  Previous  Next  Index