Package tigase.xmpp

Examples of tigase.xmpp.XMPPIOService.stop()


    case GETDISCO:

      break;
    case CLOSE:
      if (serv != null) {
        serv.stop();
      } else {
        log.fine("Attempt to stop non-existen service for packet: "
          + packet.getStringData()
          + ", Service already stopped?");
      } // end of if (serv != null) else
View Full Code Here


      // this is correct. So, let's try to not stop the old connection if it
      // it accept type....
      if (old_serv != null
        && old_serv.connectionType() != ConnectionType.accept) {
        log.finest("Stopping old connection for: " + cid);
        old_serv.stop();
      }
    }
  }

  public synchronized void processDialback(Packet packet, XMPPIOService serv,
View Full Code Here

          waitingControlPackets.remove(connect_jid);
          handleDialbackSuccess(connect_jid);
          break;
        default:
          log.finer("Connection: " + connect_jid + " is invalid!! Stopping...");
          connect_serv.stop();
          break;
        } // end of switch (packet.getType())
      } // end of if (packet.getType() != null) else
    } // end of if (packet != null && packet.getElemName().equals("db:result"))
View Full Code Here

            // Ups, verification failed, let's stop the service now.
            log.finer("Received " + packet.getType().toString()
              + " validation result, stopping service, closing connection.");
            writeRawData(accept_serv, "</stream:stream>");
            //accept_serv.writeRawData("</stream:stream>");
            accept_serv.stop();
            break;
          }
        } catch (Exception e) {
          accept_serv.stop();
        }
View Full Code Here

            //accept_serv.writeRawData("</stream:stream>");
            accept_serv.stop();
            break;
          }
        } catch (Exception e) {
          accept_serv.stop();
        }

      } // end of if (packet.getType() == null) else
    } // end of if (packet != null && packet.getType() != null)
View Full Code Here

  public void validateIncoming(String session_id, boolean valid) {
    XMPPIOService serv = incoming.get(session_id);
    if (serv != null) {
      serv.getSessionData().put("valid", valid);
      if (!valid) {
        serv.stop();
      }
    }
  }

  protected String getLocalDBKey(String cid, String key, String forkey_sessionId,
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.