Package tigase.xmpp

Examples of tigase.xmpp.StanzaType


    if (session == null) {
      return;
    } // end of if (session == null)

    try {
      StanzaType type = packet.getType();
      switch (type) {
      case get:
        processGetRequest(packet, session, results);
        break;
      case set:
View Full Code Here


      String id = null;
      if (packet.getElemTo() != null) {
        id = JIDUtils.getNodeID(packet.getElemTo());
      } // end of if (packet.getElemTo() != null)
      if (id == null || id.equals(session.getUserId())) {
        StanzaType type = packet.getType();
        switch (type) {
        case get:
          String iq_level = session.getPublicData(ID, LEVEL, null);
          results.offer(getResponsePacket(packet, iq_level));
          break;
View Full Code Here

          "Session is not yet authorized.", false));
      return;
    } // end of if (!session.isAuthorized())

    //Element request = packet.getElement();
    StanzaType type = packet.getType();
    switch (type) {
    case set:
      session.putSessionData(SESSION_KEY, "true");
      results.offer(packet.okResult((String)null, 0));
      break;
View Full Code Here

    } // end of if (packet.getElemName().equals("message"))
    packets_sent += results.size();
  }

  private void processPresence(Packet packet, Queue<Packet> results) {
    StanzaType presence_type = StanzaType.available;
    if (packet.getType() != null) {
      presence_type = packet.getType();
    }
    RosterItem ri = getRosterItem(packet.getElemFrom());
    switch (presence_type) {
View Full Code Here

TOP

Related Classes of tigase.xmpp.StanzaType

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.