Examples of MessageEvent

  • jetbrains.communicator.core.transport.MessageEvent
    @author kir
  • net.gleamynode.netty.channel.MessageEvent
  • net.sourceforge.processdash.msg.MessageEvent
  • org.cspoker.common.api.chat.event.MessageEvent
  • org.directwebremoting.event.MessageEvent
    An MessageEvent is fired to a set of {@link MessageListener}s by the DWR {@link Hub}. @author Joe Walker [joe at getahead dot ltd dot uk]
  • org.eclipse.ecf.internal.provider.xmpp.events.MessageEvent
  • org.groovymud.engine.event.messages.MessageEvent
  • org.gwtoolbox.sample.ioc.client.event.MessageEvent
    @author Uri Boness
  • org.jboss.netty.channel.MessageEvent
    @author The Netty Project (netty-dev@lists.jboss.org) @author Trustin Lee (tlee@redhat.com) @version $Rev: 6 $, $Date: 2008-08-08 10:40:10 +0900 (Fri, 08 Aug 2008) $
  • org.jivesoftware.smackx.packet.MessageEvent
    Represents message events relating to the delivery, display, composition and cancellation of messages.

    There are four message events currently defined in this namespace:

    1. Offline
      Indicates that the message has been stored offline by the intended recipient's server. This event is triggered only if the intended recipient's server supports offline storage, has that support enabled, and the recipient is offline when the server receives the message for delivery.
    2. Delivered
      Indicates that the message has been delivered to the recipient. This signifies that the message has reached the recipient's XMPP client, but does not necessarily mean that the message has been displayed. This event is to be raised by the XMPP client.
    3. Displayed
      Once the message has been received by the recipient's XMPP client, it may be displayed to the user. This event indicates that the message has been displayed, and is to be raised by the XMPP client. Even if a message is displayed multiple times, this event should be raised only once.
    4. Composing
      In threaded chat conversations, this indicates that the recipient is composing a reply to a message. The event is to be raised by the recipient's XMPP client. A XMPP client is allowed to raise this event multiple times in response to the same request, providing the original event is cancelled first.
    @author Gaston Dombiak
  • org.netbeans.lib.cvsclient.event.MessageEvent
  • org.pircbotx.hooks.events.MessageEvent
  • org.rsbot.event.events.MessageEvent
    A message event.
  • robocode.MessageEvent
    A MessageEvent is sent to {@link TeamRobot#onMessageReceived(MessageEvent) onMessageReceived()} when a teammate sends a message to your robot.You can use the information contained in this event to determine what to do. @author Mathew A. Nelson (original)
  • rocks.xmpp.core.stanza.MessageEvent
    A message event is fired whenever a message is received or sent. @author Christian Schudt @see MessageListener

  • Examples of org.eclipse.ecf.internal.provider.xmpp.events.MessageEvent

      }

      protected void handleChatMessage(Message mess) throws IOException {
        final SOWrapper wrap = getSharedObjectWrapper(containerHelperID);
        if (wrap != null) {
          wrap.deliverEvent(new MessageEvent(mess));
        }
      }
    View Full Code Here

    Examples of org.groovymud.engine.event.messages.MessageEvent

      private Container castToContainer(MudObject obj) {
        return ((Container) obj);
      }

      protected void fireLeavingMessage(Player player) {
        MessageEvent leaves = new MessageEvent(EventScope.GLOBAL_SCOPE);
        leaves.setScopeMessage("[" + player.getName() + " leaves GroovyMud]");
        leaves.setSource(player);
        leaves.setSourceMessage("Thanks for visiting!!");
        ((Observable) player).fireEvent(leaves);
      }
    View Full Code Here

    Examples of org.gwtoolbox.sample.ioc.client.event.MessageEvent

            panel.add(new HTML("<b>Friend:</b> " + ((person.getFriend() == null) ? "null" : person.getFriend().getName())));
            panel.add(new HTML("<b>System Id:</b> " + person));
            panel.add(new Button("Send Message", new ClickHandler() {
                public void onClick(ClickEvent clickEvent) {
                    String message = "Person '" + person.getName() + "' sent this message!!!";
                    multicaster.notifyEvent(new MessageEvent(null, message));
                }
            }));
            DOM.setStyleAttribute(panel.getElement(), "color", color);
        }
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

            if (!(evt instanceof MessageEvent)) {
                ctx.sendDownstream(evt);
                return;
            }

            MessageEvent e = (MessageEvent) evt;
           
            if (e.getMessage() instanceof ChunkedInput) {
                ctx.sendDownstream(evt);
                return;
            }
           
            ChannelBufferOutputStream bout =
                new ChannelBufferOutputStream(dynamicBuffer(
                        estimatedLength, ctx.getChannel().getConfig().getBufferFactory()));
            bout.write(LENGTH_PLACEHOLDER);
            final CompactObjectOutputStream oout = new CompactObjectOutputStream(bout);
            oout.writeObject(e.getMessage());
            ExternalizeUtil.writeCollection(oout, oout.getReferences());
            oout.flush();
            oout.close();

            ChannelBuffer encoded = bout.buffer();
            encoded.setInt(0, encoded.writerIndex() - 4);
            write(ctx, e.getFuture(), encoded, e.getRemoteAddress());
        for (InputStream is : oout.getStreams()) {
          Channels.write(ctx.getChannel(), new AnonymousChunkedStream(new BufferedInputStream(is, CHUNK_SIZE)));
        }
        }
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

            if (!(evt instanceof MessageEvent)) {
                ctx.sendDownstream(evt);
                return;
            }

            MessageEvent me = (MessageEvent) evt;
        if (!(me.getMessage() instanceof ServiceInvocationStruct)) {
          ctx.sendDownstream(evt);
                return;
        }
        this.ctx = ctx;
        this.message = me;
        ServiceInvocationStruct serviceStruct = (ServiceInvocationStruct)me.getMessage();

        try {
          Method m = this.clientProxy.findBestMethodOnTarget(serviceStruct.methodName, serviceStruct.args);
          try {
            m.invoke(this, serviceStruct.args);
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

              _lock.lock();
              try
              {
                if (_stop)
                  return;
              MessageEvent e = (MessageEvent) it.next();
              GroupedMessage m = (GroupedMessage) e.getMessage();
              _pendingCalls.put(e, m.getGroup());
              }
              catch (Exception ex)
              {
                ex.printStackTrace();
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

        //System.out.println(Thread.currentThread()+" produce");
        boolean produced = false;
        _lock.lock();
        try
        {
          MessageEvent toSend = null;
        while (ctx.getChannel().isConnected() && _pendingCalls.size() > 0)
        {
          if (_stop)
            return;

        try
        {
          toSend = _pendingCalls.take();
          //System.out.println(Thread.currentThread()+ " OutputProducer sendMessage");
          ctx.sendDownstream(toSend);
          _pendingTermination.add(toSend);
          produced = true;
        }
        catch (Exception ex)
        {
          ex.printStackTrace();
          _pendingCalls.put(toSend, ((GroupedMessage) toSend.getMessage()).getGroup());
        }
        }
        if (produced && _pendingCalls.size() == 0)
        {
          //System.out.println(Thread.currentThread()+ " OutputProducer flush");
          Channels.write(ctx, Channels.future(ctx.getChannel()), new FlushRequestMessage());
          for (Iterator it = _pendingTermination.iterator(); it.hasNext(); )
          {
            if (_stop)
              return;

            try
            {
            MessageEvent e = (MessageEvent) it.next();
            GroupedMessage m = (GroupedMessage) e.getMessage();
            it.remove();
            e.getFuture().setSuccess();
            }
            catch (Exception ex)
            {
              ex.printStackTrace();
            }
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

      @Override
      public void log(ChannelEvent e)
      {
        if (e instanceof MessageEvent)
        {
          MessageEvent msg = (MessageEvent) e;
          log(msg.toString());
        }
        if (e != null)
          log(e.toString());
        else
          log("null event !!");
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

       */
      @Override
      public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {
        final Channel channel = e.getChannel();
        if(e instanceof MessageEvent) {
          MessageEvent messageEvent = (MessageEvent)e;
          Object message = messageEvent.getMessage();
          if(message instanceof HttpRequest) {
            HttpRequest request = (HttpRequest)message;
            int metricCount = processMetric(request);
            HttpResponse response = new DefaultHttpResponse(HTTP_1_1, OK);
            response.setContent(ChannelBuffers.copiedBuffer("\n" + metricCount + "\n", CharsetUtil.UTF_8));
    View Full Code Here

    Examples of org.jboss.netty.channel.MessageEvent

                   }
                }
                active = true;
                handShakeFuture.run();
             }
             MessageEvent event = new UpstreamMessageEvent(e.getChannel(), response.getContent(), e.getRemoteAddress());
             waitingGet = false;
             ctx.sendUpstream(event);
          }
    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.