Package es.udc.pfc.xmpp.stanza

Examples of es.udc.pfc.xmpp.stanza.Stanza


    if (!(e.getMessage() instanceof Stanza)) {
      ctx.sendUpstream(e);
      return;
    }

    final Stanza stanza = (Stanza) e.getMessage();
    if (stanza instanceof Message) {
      callback.receivedMessage((Message) stanza);
    } else if (stanza instanceof Presence) {
      callback.receivedPresence((Presence) stanza);
    } else if (stanza instanceof IQ) {
View Full Code Here


       
        ctx.getPipeline().get(XMPPStreamHandler.class).loggedIn();
       
        break;
      case READY:
        final Stanza stanza = Stanza.fromElement(element);
        if (stanza == null)
          throw new Exception("Unknown stanza");

        Channels.fireMessageReceived(ctx, stanza);
        break;
View Full Code Here

TOP

Related Classes of es.udc.pfc.xmpp.stanza.Stanza

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.