void triggerSessionRequested ( Jingle initJin ) { JingleSessionRequestListener [ ] jingleSessionRequestListeners ; // Make a synchronized copy of the listenerJingles synchronized ( this . jingleSessionRequestListeners ) { jingleSessionRequestListeners = new JingleSessionRequestListener [ this . jingleSessionRequestListeners . size ( ) ] ; this . jingleSessionRequestListeners . toArray ( jingleSessionRequestListeners ) ; } // ... and let them know of the event JingleSessionRequest request = new JingleSessionRequest ( this , initJin ) ; for ( int i = 0 ; i < jingleSessionRequestListeners . length ; i ++ ) { jingleSessionRequestListeners [ i ] . sessionRequested ( request ) ; } }
Activates the listenerJingles on a Jingle session request .