Module Server, clss SimpleMessageHandler : correction erreurs de compilation

This commit is contained in:
Notmoo 2017-08-01 16:29:44 +02:00
parent da6aafc624
commit 00313858b0

View File

@ -139,8 +139,8 @@ public class SimpleMessageHandler implements IMessageHandler {
fields.put(header_ref_query, "Compte utilisateur avec permission trop faible");
return new Message(MessageType.REFUSED_QUERY, serverStateService.getServer(), message.getEmitter(), message.getUser(), message, fields);
}
if(queryHandlers.containsKey(message.getType())){
return queryHandlers.get(message.getType()).execute(message);
if(manager.contains(message.getType())){
return manager.getProcess(message.getType()).execute(message);
}
fields.put(header_err_query, "Type requête non pris en charge par ce serveur");
@ -175,6 +175,10 @@ public class SimpleMessageHandler implements IMessageHandler {
AccountLevel getLevel(MessageType messageType){
return levels.get(messageType);
}
public boolean contains(MessageType type) {
return processes.containsKey(type);
}
}
/**