Package org.knapper.core.events

Examples of org.knapper.core.events.MessageReceiveEvent


    this.clientSession = clientSession;
  }
 
  public void handleEvent(IClientEvent event) {
    if (event instanceof MessageReceiveEvent) {
      MessageReceiveEvent mre = (MessageReceiveEvent) event;
     
      handleMessageReceiveEvent(mre);
    } else if (event instanceof ClientThreadChangeEvent) {
      ClientThreadChangeEvent ctce = (ClientThreadChangeEvent) event;
     
View Full Code Here


   
  private void handleServerMessage(IMessage message) {
    ChatMessageBody cmb = ChatMessageBody.parseBody(message.getBody());
   
    if (cmb != null) {
      fireEvent(new MessageReceiveEvent(null, message));
    }
   
 
  }
View Full Code Here

  public IMasterServer getServer() {
    return server;
  }
 
  public void receiveServerMessage(IMessage message) {
    clientProtocol.handleEvent(new MessageReceiveEvent(serverWorker, message));
   
    fireChangeEvent(
        "Received Player Message",
        ClientChangeEvent.SERVER_MESSAGE_RECEIVED,
        null)
View Full Code Here

    this.clientSession = clientSession;
  }
 
  public void handleEvent(IClientEvent event) {
    if (event instanceof MessageReceiveEvent) {
      MessageReceiveEvent mre = (MessageReceiveEvent) event;
     
      handleMessageReceiveEvent(mre);
    } else if (event instanceof ClientChangeEvent) {
      // forward
      fireEvent(event);
View Full Code Here

   
  private void handleServerMessage(IMessage message) {
    ChatMessageBody cmb = ChatMessageBody.parseBody(message.getBody());
   
    if (cmb != null) {
      fireEvent(new MessageReceiveEvent(null, message));
    }
  }
View Full Code Here

TOP

Related Classes of org.knapper.core.events.MessageReceiveEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.