本文整理汇总了Java中org.jivesoftware.smackx.address.packet.MultipleAddresses.Address方法的典型用法代码示例。如果您正苦于以下问题:Java MultipleAddresses.Address方法的具体用法?Java MultipleAddresses.Address怎么用?Java MultipleAddresses.Address使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jivesoftware.smackx.address.packet.MultipleAddresses
的用法示例。
在下文中一共展示了MultipleAddresses.Address方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTOAddresses
import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
* Returns the list of {@link org.jivesoftware.smackx.address.packet.MultipleAddresses.Address}
* that were the primary recipients of the packet.
*
* @return list of primary recipients of the packet.
*/
public List<MultipleAddresses.Address> getTOAddresses() {
return extension.getAddressesOfType(MultipleAddresses.Type.to);
}
示例2: getCCAddresses
import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
* Returns the list of {@link org.jivesoftware.smackx.address.packet.MultipleAddresses.Address}
* that were the secondary recipients of the packet.
*
* @return list of secondary recipients of the packet.
*/
public List<MultipleAddresses.Address> getCCAddresses() {
return extension.getAddressesOfType(MultipleAddresses.Type.cc);
}
示例3: getReplyRoom
import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
* Returns the JID of a MUC room to which responses should be sent or <tt>null</tt> if
* no specific address was provided. When no specific address was provided then the reply
* can be sent to any or all recipients. Otherwise, the user should join the specified room
* and send the reply to the room.
*
* @return the JID of a MUC room to which responses should be sent or <tt>null</tt> if
* no specific address was provided.
*/
public String getReplyRoom() {
List<MultipleAddresses.Address> replyRoom = extension.getAddressesOfType(MultipleAddresses.Type.replyroom);
return replyRoom.isEmpty() ? null : ((MultipleAddresses.Address) replyRoom.get(0)).getJid();
}
示例4: getReplyAddress
import org.jivesoftware.smackx.address.packet.MultipleAddresses; //导入方法依赖的package包/类
/**
* Returns the address to which all replies are requested to be sent or <tt>null</tt> if
* no specific address was provided. When no specific address was provided then the reply
* can be sent to any or all recipients.
*
* @return the address to which all replies are requested to be sent or <tt>null</tt> if
* no specific address was provided.
*/
public MultipleAddresses.Address getReplyAddress() {
List<MultipleAddresses.Address> replyTo = extension.getAddressesOfType(MultipleAddresses.Type.replyto);
return replyTo.isEmpty() ? null : (MultipleAddresses.Address) replyTo.get(0);
}