Examples of ChatMessage


Examples of net.tacospice.stevenet.NetworkMessages.ChatMessage

  public void sendChat(String message)
  {
    if (message == null || message.length() == 0)
      return;

    ChatMessage chatMessage = new ChatMessage();
    chatMessage.text = message;

    sendTCP(chatMessage);
  }
View Full Code Here

Examples of net.zschech.gwt.chat.client.ChatMessage

    if (username == null) {
      throw new ChatException("not logged in: no http session username");
    }
   
    // create the chat message
    ChatMessage chatMessage = new ChatMessage();
    chatMessage.setUsername(username);
    chatMessage.setMessage(message);
   
    for (Map.Entry<String, CometSession> entry : users.entrySet()) {
      entry.getValue().enqueue(chatMessage);
    }
  }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.basic.ChatMessage

          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
View Full Code Here

Examples of org.apache.openmeetings.db.entity.basic.ChatMessage

          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
View Full Code Here

Examples of org.apache.openmeetings.persistence.beans.chat.ChatMessage

    f.add(new Button("send").add(new AjaxFormSubmitBehavior("onclick"){
      private static final long serialVersionUID = -3746739738826501331L;
     
      protected void onSubmit(AjaxRequestTarget target) {
        ChatDao dao = Application.getBean(ChatDao.class);
        ChatMessage m = new ChatMessage();
        m.setMessage(message);
        m.setSent(new Date());
        m.setFromUser(Application.getBean(UsersDao.class).get(WebSession.getUserId()));
        dao.update(m);
        IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
        for (IWebSocketConnection c : reg.getConnections(getApplication())) {
          try {
            c.sendMessage(getMessage(m).toString());
View Full Code Here

Examples of org.darkhelm.dragonchess.shared.chat.ChatMessage

    return channelKey;
  }

  @Override
  public void sendMessage(String message) {
    ChannelServer.send(CHANNELNAME, new ChatMessage(message));
  }
View Full Code Here

Examples of org.eclipse.ecf.presence.im.ChatMessage

  private void fireMessageEvent(ID fromID, String message) {
    synchronized (messageListeners) {
      for (int i = 0; i < messageListeners.size(); i++) {
        ((IIMMessageListener) messageListeners.get(i))
            .handleMessageEvent(new ChatMessageEvent(fromID,
                new ChatMessage(fromID, message)));
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.presence.im.ChatMessage

  }

  public void fireChatMessageEvent(ID sender, String msg) {
    for (Iterator i = msgListeners.iterator(); i.hasNext();) {
      IIMMessageListener l = (IIMMessageListener) i.next();
      l.handleMessageEvent(new ChatMessageEvent(sender, new ChatMessage(sender, msg)));
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.presence.im.ChatMessage

  private void fireMessageEvent(ID fromID, String message) {
    synchronized (messageListeners) {
      for (int i = 0; i < messageListeners.size(); i++) {
        ((IIMMessageListener) messageListeners.get(i))
            .handleMessageEvent(new ChatMessageEvent(fromID,
                new ChatMessage(fromID, message)));
      }
    }
  }
View Full Code Here

Examples of org.jboss.remoting.samples.chat.client.ChatMessage

   }

  
   protected void send(Object[] args) throws ShuttingDownException
   {
      ChatMessage mesg = (ChatMessage) args[0];
      shutDownGate.enter();
      ReadWriteArrayList messages = extendedChatInfo.getMessages();
      messages.add(mesg);
      shutDownGate.leave();
   }  
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.