public DiscoverItems discoverNodes ( String nodeId ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { DiscoverItems items = new DiscoverItems ( ) ; if ( nodeId != null ) items . setNode ( nodeId ) ; items . setTo ( pubSubService ) ; DiscoverItems nodeItems = connection ( ) . createStanzaCollectorAndSend ( items ) . nextResultOrThrow ( ) ; return nodeItems ; }
Get all the nodes that currently exist as a child of the specified collection node . If the service does not support collection nodes then all nodes will be returned .