Package org.jivesoftware.openfire.net

Examples of org.jivesoftware.openfire.net.ClientStanzaHandler


        return new NIOConnection(session, XMPPServer.getInstance().getPacketDeliverer());
    }

    @Override
  StanzaHandler createStanzaHandler(NIOConnection connection) {
        return new ClientStanzaHandler(XMPPServer.getInstance().getPacketRouter(), serverName, connection);
    }
View Full Code Here


    public void sessionIdle(IoSession session, IdleStatus status) throws Exception {
      super.sessionIdle(session, status);
     
      final boolean doPing = JiveGlobals.getBooleanProperty("xmpp.client.idle.ping", true);
        if (doPing && session.getIdleCount(status) == 1) {
            final ClientStanzaHandler handler = (ClientStanzaHandler) session.getAttribute(HANDLER);
            final JID entity = handler.getAddress();
           
            if (entity != null) {
          // Ping the connection to see if it is alive.
        final IQ pingRequest = new IQ(Type.get);
        pingRequest.setChildElement("ping",
View Full Code Here

TOP

Related Classes of org.jivesoftware.openfire.net.ClientStanzaHandler

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.