Class OfflineMessage
- java.lang.Object
-
- rocks.xmpp.extensions.offline.model.OfflineMessage
-
public final class OfflineMessage extends Object
The implementation of the<offline/>
element in thehttp://jabber.org/protocol/offline
namespace.This class is immutable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OfflineMessage.Item
-
Constructor Summary
Constructors Constructor Description OfflineMessage(boolean fetch, boolean purge)
OfflineMessage(Collection<OfflineMessage.Item> items)
OfflineMessage(OfflineMessage.Item... item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Gets the offline message id of the first item or null, if the element has no items.List<OfflineMessage.Item>
getItems()
Gets the items.boolean
isFetch()
If all messages should be retrieved.boolean
isPurge()
If all messages should be removed.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/offline- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OfflineMessage
public OfflineMessage(OfflineMessage.Item... item)
-
OfflineMessage
public OfflineMessage(Collection<OfflineMessage.Item> items)
-
OfflineMessage
public OfflineMessage(boolean fetch, boolean purge)
-
-
Method Detail
-
getId
public String getId()
Gets the offline message id of the first item or null, if the element has no items.- Returns:
- The offline message id.
-
isPurge
public final boolean isPurge()
If all messages should be removed.- Returns:
- True if all messages should be removed.
- See Also:
- 2.7 Removing All Messages
-
isFetch
public final boolean isFetch()
If all messages should be retrieved.- Returns:
- True if all messages should be retrieved.
- See Also:
- 2.6 Retrieving All Messages
-
getItems
public final List<OfflineMessage.Item> getItems()
Gets the items.- Returns:
- The items.
-
-