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
-
client
- The client whose status line is to be updated according to the received
ResultMessages.
-
ResultMessageHandler(ConnectionManager, Client, MessageHandler)
- Initializes the ResultMessageHandler with the given arguments.
-
getClient()
- Gets the client whose status line is to be updated according to the
received ResultMessages.
-
handle(Message)
- This method handles ResultMessage objects others are redirected onwards.
-
setClient(Client)
- Sets the client whose status line is to be updated according to the
received ResultMessages.
client
private Client client
- The client whose status line is to be updated according to the received
ResultMessages.
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).
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
getClient
private Client getClient()
- Gets the client whose status line is to be updated according to the
received ResultMessages.
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