Examples of SessionStatusListener


Examples of rocks.xmpp.core.session.SessionStatusListener

    private final Set<ByteStreamListener> byteStreamListeners = new CopyOnWriteArraySet<>();

    protected ByteStreamManager(XmppSession xmppSession, String... features) {
        super(xmppSession, features);

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

Examples of rocks.xmpp.core.session.SessionStatusListener

            public boolean accept(Message message) {
                return message.getType() != Message.Type.ERROR;
            }
        });

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

Examples of rocks.xmpp.core.session.SessionStatusListener

    private final Collection<Jid> trustedEntities = new CopyOnWriteArraySet<>();

    private ContactExchangeManager(final XmppSession xmppSession) {
        super(xmppSession, ContactExchange.NAMESPACE);

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

Examples of rocks.xmpp.core.session.SessionStatusListener

        super(xmppSession, Socks5ByteStream.NAMESPACE);
        this.serviceDiscoveryManager = xmppSession.getExtensionManager(ServiceDiscoveryManager.class);

        this.localSocks5Server = new LocalSocks5Server();

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    // Stop the server, when the session is closed.
                    localSocks5Server.stop();
View Full Code Here

Examples of rocks.xmpp.core.session.SessionStatusListener

    private final Set<BlockingListener> blockingListeners = new CopyOnWriteArraySet<>();

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

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

Examples of rocks.xmpp.core.session.SessionStatusListener

    final Map<String, IbbSession> ibbSessionMap = new ConcurrentHashMap<>();

    private InBandByteStreamManager(final XmppSession xmppSession) {
        super(xmppSession, InBandByteStream.NAMESPACE);

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

Examples of rocks.xmpp.core.session.SessionStatusListener

        }
    });

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

Examples of rocks.xmpp.core.session.SessionStatusListener

    private LastActivityManager(final XmppSession xmppSession) {
        super(xmppSession, LastActivity.NAMESPACE);
        lastActivityStrategy = new DefaultLastActivityStrategy(xmppSession);

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

Examples of rocks.xmpp.core.session.SessionStatusListener

    private final Map<String, Data> dataCache = new ConcurrentHashMap<>();

    private BitsOfBinaryManager(final XmppSession xmppSession) {
        super(xmppSession, "urn:xmpp:bob");

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

Examples of rocks.xmpp.core.session.SessionStatusListener

    private final Set<InvitationListener> invitationListeners = new CopyOnWriteArraySet<>();

    private MultiUserChatManager(final XmppSession xmppSession) {
        super(xmppSession, Muc.NAMESPACE);

        xmppSession.addSessionStatusListener(new SessionStatusListener() {
            @Override
            public void sessionStatusChanged(SessionStatusEvent e) {
                if (e.getStatus() == XmppSession.Status.CLOSED) {
                    invitationListeners.clear();
                }
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.