public DiscoverInfo discoverInfo ( Jid entityID , String node ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { // Discover the entity's info DiscoverInfo disco = new DiscoverInfo ( ) ; disco . setType ( IQ . Type . get ) ; disco . setTo ( entityID ) ; disco . setNode ( node ) ; Stanza result = connection ( ) . createStanzaCollectorAndSend ( disco ) . nextResultOrThrow ( ) ; return ( DiscoverInfo ) result ; }
Returns the discovered information of a given XMPP entity addressed by its JID and note attribute . Use this message only when trying to query information which is not directly addressable .