All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Serveur.Dispatcher

java.lang.Object
   |
   +----java.util.Observable
           |
           +----Common.Dispatcher
                   |
                   +----Serveur.Dispatcher

public class Dispatcher
extends Dispatcher

Variable Index

 o currentCommand
 o user

Constructor Index

 o Dispatcher(Socket, User)
Dispatcher constructor comment.

Method Index

 o sendCommand(String)
Envoie d'une commande par le reseau
 o setUser(User)
Met a jour l'utilisateur associé a cette classe
 o update(Observable, Object)
Une commande en provenance d'une client est arrivée

Variables

 o user
 private User user
 o currentCommand
 private String currentCommand

Constructors

 o Dispatcher
 public Dispatcher(Socket socket,
                   User user)
Dispatcher constructor comment.

Parameters:
socket - java.net.Socket

Methods

 o sendCommand
 public void sendCommand(String command)
Envoie d'une commande par le reseau

Parameters:
command - java.lang.String
 o setUser
 public void setUser(User user)
Met a jour l'utilisateur associé a cette classe

Parameters:
user - Serveur.User
 o update
 public void update(Observable ob,
                    Object o)
Une commande en provenance d'une client est arrivée

Parameters:
ob - Observable
o - java.lang.Object
Overrides:
update in class Dispatcher

All Packages  Class Hierarchy  This Package  Previous  Next  Index