Search in sources :

Example 1 with ConnectionCloseListener

use of org.jivesoftware.openfire.ConnectionCloseListener in project Openfire by igniterealtime.

the class NIOConnection method reinit.

@Override
public void reinit(LocalSession owner) {
    session = owner;
    StanzaHandler stanzaHandler = getStanzaHandler();
    stanzaHandler.setSession(owner);
    // during the callback. OF-2014
    for (final Map.Entry<ConnectionCloseListener, Object> entry : closeListeners.entrySet()) {
        if (entry.getValue() instanceof LocalSession) {
            entry.setValue(owner);
        }
    }
}
Also used : StanzaHandler(org.jivesoftware.openfire.net.StanzaHandler) LocalSession(org.jivesoftware.openfire.session.LocalSession) ConnectionCloseListener(org.jivesoftware.openfire.ConnectionCloseListener)

Aggregations

ConnectionCloseListener (org.jivesoftware.openfire.ConnectionCloseListener)1 StanzaHandler (org.jivesoftware.openfire.net.StanzaHandler)1 LocalSession (org.jivesoftware.openfire.session.LocalSession)1