Examples of SessionStatusListener


Examples of rocks.xmpp.core.session.SessionStatusListener

    private final List<Address> addresses = new CopyOnWriteArrayList<>();

    private ReachabilityManager(final XmppSession xmppSession) {
        super(xmppSession, Reachability.NAMESPACE);
        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    reachabilityListeners.clear();
                    reachabilities.clear();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

        this.name = name;
        this.roomJid = roomJid;
        this.xmppSession = xmppSession;
        this.serviceDiscoveryManager = xmppSession.getExtensionManager(ServiceDiscoveryManager.class);

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    invitationDeclineListeners.clear();
                    subjectChangeListeners.clear();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

                        e.consume();
                    }
                }
            }
        });
        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    rosterListeners.clear();
                }
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

    private JingleManager(final XmppSession xmppSession) {
        super(xmppSession);

        supportedApplicationFormats.add(JingleFileTransfer.class);

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    jingleListeners.clear();
                    jingleSessionMap.clear();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

                    }
                }
            }
        });

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    jidInfos.clear();
                    cache.clear();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

                Thread thread = new Thread(r, "Avatar Request Thread");
                thread.setDaemon(true);
                return thread;
            }
        });
        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    avatarChangeListeners.clear();
                    requestingAvatarLocks.clear();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

public final class PrivacyListManager extends ExtensionManager {
    private final Set<PrivacyListListener> privacyListListeners = new CopyOnWriteArraySet<>();

    private PrivacyListManager(final XmppSession xmppSession) {
        super(xmppSession);
        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    privacyListListeners.clear();
                }
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

    private HttpAuthenticationManager(XmppSession xmppSession) {
        // TODO: Include namespace here for Service Discovery? (no mentioning in XEP-0070)
        super(xmppSession);

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    httpAuthenticationListeners.clear();
                }
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

                    e.consume();
                }
            }
        });

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    // Shutdown the ping executor service and cancel the next ping.
                    synchronized (PingManager.this) {
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.