Class ServerInterface

java.lang.Object
   |
   +----ServerInterface

class ServerInterface
extends Object
Cette classe traite la communication avec le serveur


Variable Index

 o currentCommand
 o dispatcher

Constructor Index

 o ServerInterface()
ServerInterface constructor comment.

Method Index

 o addCommand(String)
Reception des commandes de la part du serveur
 o close()
Fermeture de la connexion
 o sendCommand(String)
Cette methode permet d'envoyer des commandes au serveur
 o setDispatcher(DispatcherServeur)
Mise a jour du dispatcher (interface de communication)

Variables

 o currentCommand
 private String currentCommand
 o dispatcher
 private DispatcherServeur dispatcher

Constructors

 o ServerInterface
 public ServerInterface()
ServerInterface constructor comment.

Methods

 o addCommand
 public void addCommand(String command)
Reception des commandes de la part du serveur

Parameters:
command - java.lang.String
 o close
 public void close()
Fermeture de la connexion

 o sendCommand
 public void sendCommand(String command)
Cette methode permet d'envoyer des commandes au serveur

Parameters:
command - java.lang.String
 o setDispatcher
 public void setDispatcher(DispatcherServeur dispatcher)
Mise a jour du dispatcher (interface de communication)

Parameters:
dispatcher - Dispatcher