Interface SubscribeFormReader
- All Superinterfaces:
FormReader
- All Known Implementing Classes:
FillableSubscribeForm,FilledSubscribeForm,SubscribeForm
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault IntegerGets the minimum number of milliseconds between sending notification digests.default DateGet the time at which the leased subscription will expire, or has expired.default List<PresenceState>Gets thePresenceStatefor which an entity wants to receive notifications.default booleanDetermines if an entity wants to receive notifications.default BooleanDetermines if notifications should be delivered as aggregations or not.default BooleanDetermines whether the entity wants to receive an XMPP message body in addition to the payload format.Methods inherited from interface org.jivesoftware.smackx.xdata.form.FormReader
getField, readBoolean, readDate, readFirstValue, readInteger, readStringValues, readValues
-
Field Details
-
FORM_TYPE
- See Also:
-
-
Method Details
-
isDeliverOn
Determines if an entity wants to receive notifications.- Returns:
- true if want to receive, false otherwise
-
isDigestOn
Determines if notifications should be delivered as aggregations or not.- Returns:
- true to aggregate, false otherwise
-
getDigestFrequency
Gets the minimum number of milliseconds between sending notification digests.- Returns:
- The frequency in milliseconds
-
getExpiry
Get the time at which the leased subscription will expire, or has expired.- Returns:
- The expiry date
- Throws:
ParseException- in case the date could not be parsed.
-
isIncludeBody
Determines whether the entity wants to receive an XMPP message body in addition to the payload format.- Returns:
- true to receive the message body, false otherwise
-
getShowValues
Gets thePresenceStatefor which an entity wants to receive notifications.- Returns:
- the list of states
-