All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tc.message.handler.server.AccountOptionsMessageHandler

java.lang.Object
   |
   +----connection.MessageHandler
           |
           +----tc.message.handler.server.DatabaseMessageHandler
                   |
                   +----tc.message.handler.server.AccountOptionsMessageHandler

public class AccountOptionsMessageHandler
extends DatabaseMessageHandler
AccountOptionsMessageHandler handles messages of class AccountOptionsMessage. It delegates the database request for the database manager.

See Also:
AccountOptionsMessage, DatabaseManager

Constructor Index

 o AccountOptionsMessageHandler(ConnectionManager, DatabaseManager, MessageHandler)
Initializes the AccountOptionsMessageHandler with the given arguments.

Method Index

 o subclassHandle(Message)
This method handles AccountOptionsMessage objects.

Constructors

 o AccountOptionsMessageHandler
 public AccountOptionsMessageHandler(ConnectionManager cm,
                                     DatabaseManager d,
                                     MessageHandler successor)
Initializes the AccountOptionsMessageHandler 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.
d - The database manager for accessing the database.
successor - The next message handler in the handler chain (if any).

Methods

 o subclassHandle
 public boolean subclassHandle(Message m) throws Exception
This method handles AccountOptionsMessage objects. Others are redirected onwards. Asks the database manager to execute the necessary query. Sends confirmation to the client.

Overrides:
subclassHandle in class DatabaseMessageHandler

All Packages  Class Hierarchy  This Package  Previous  Next  Index