Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Can I intercept a stream stanza in an OpenFire Plugin?

$
0
0

Hi,

 

I'm trying to create a plugin for OpenFire that will allow some custom data sent through in the initial stream stanza to be read and verified by the server.

I've tried using a few Interceptors and Listeners with no luck.

  • PacketInterceptor - only seems to fire when the first iq stanza comes through (quite a while after the stream started)
  • SessionEventListener - only seems to fire when the stream has been accepted and responded to and the session is actually created
  • PresenceEventListener - fires when presence is sent after the session has been started

 

Is there something that I'm missing to intercept the initial stream stanza to read and verify the custom data and then abort the session if not verified?

 

Thanks in advance for any help.

 

Regards,

 

Phil


Viewing all articles
Browse latest Browse all 10742

Trending Articles