public void addExtension ( ExtensionElement extension ) { if ( extension == null ) return ; String key = XmppStringUtils . generateKey ( extension . getElementName ( ) , extension . getNamespace ( ) ) ; synchronized ( packetExtensions ) { packetExtensions . put ( key , extension ) ; } }
Adds a stanza extension to the packet . Does nothing if extension is null .