public void addBOSHClientConnListener(
            final BOSHClientConnListener listener) {
        if (listener == null) {
            throw(new IllegalArgumentException(NULL_LISTENER));
        }
        connListeners.add(listener);
    }
public void addBOSHClientConnListener ( final BOSHClientConnListener listener ) { if ( listener == null ) { throw ( new IllegalArgumentException ( NULL_LISTENER ) ) ; } connListeners . add ( listener ) ; }
Adds a connection listener to the session.

@param listener connection listener to add, if not already added