コード例 #1
0
 /**
  * Publishes new items to a parent entity. The item elements to publish MUST have at least a 'jid'
  * attribute specifying the Entity ID of the item, and an action attribute which specifies the
  * action being taken for that item. Possible action values are: "update" and "remove".
  *
  * @param entityID the address of the XMPP entity.
  * @param discoverItems the DiscoveryItems to publish.
  * @throws XMPPException if the operation failed for some reason.
  */
 public void publishItems(String entityID, DiscoverItems discoverItems) throws XMPPException {
   publishItems(entityID, null, discoverItems);
 }
コード例 #2
0
 /**
  * Publishes new items to a parent entity. The item elements to publish MUST have at least a 'jid'
  * attribute specifying the Entity ID of the item, and an action attribute which specifies the
  * action being taken for that item. Possible action values are: "update" and "remove".
  *
  * @param entityID the address of the XMPP entity.
  * @param discoverItems the DiscoveryItems to publish.
  * @throws XMPPErrorException
  * @throws NoResponseException
  * @throws NotConnectedException
  */
 public void publishItems(String entityID, DiscoverItems discoverItems)
     throws NoResponseException, XMPPErrorException, NotConnectedException {
   publishItems(entityID, null, discoverItems);
 }