Class FillableSubscribeForm
java.lang.Object
org.jivesoftware.smackx.xdata.form.FilledForm
org.jivesoftware.smackx.xdata.form.FillableForm
org.jivesoftware.smackx.pubsub.form.FillableSubscribeForm
- All Implemented Interfaces:
SubscribeFormReader,FormReader
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
formTypeFormFieldFields inherited from interface org.jivesoftware.smackx.pubsub.form.SubscribeFormReader
FORM_TYPE -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDeliverOn(boolean deliverNotifications) Sets whether an entity wants to receive notifications.voidsetDigestFrequency(int frequency) Sets the minimum number of milliseconds between sending notification digests.voidsetDigestOn(boolean digestOn) Sets whether notifications should be delivered as aggregations or not.voidSets the time at which the leased subscription will expire, or has expired.voidsetIncludeBody(boolean include) Sets whether the entity wants to receive an XMPP message body in addition to the payload format.voidsetShowValues(Collection<PresenceState> stateValues) Sets the list ofPresenceStatefor which an entity wants to receive notifications.Methods inherited from class org.jivesoftware.smackx.xdata.form.FillableForm
getDataFormToSubmit, getField, getSubmitForm, setAnswer, setAnswer, setAnswer, setAnswer, write, write, write, writeBoolean, writeListMulti, writeTextSingleMethods inherited from class org.jivesoftware.smackx.xdata.form.FilledForm
ensureFormType, getDataForm, getFieldOrThrow, getFormType, getInstructions, getTitle, hasFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smackx.xdata.form.FormReader
getField, readBoolean, readDate, readFirstValue, readInteger, readStringValues, readValuesMethods inherited from interface org.jivesoftware.smackx.pubsub.form.SubscribeFormReader
getDigestFrequency, getExpiry, getShowValues, isDeliverOn, isDigestOn, isIncludeBody
-
Method Details
-
setDeliverOn
Sets whether an entity wants to receive notifications.- Parameters:
deliverNotifications- TODO javadoc me please
-
setDigestOn
Sets whether notifications should be delivered as aggregations or not.- Parameters:
digestOn- true to aggregate, false otherwise
-
setDigestFrequency
Sets the minimum number of milliseconds between sending notification digests.- Parameters:
frequency- The frequency in milliseconds
-
setExpiry
Sets the time at which the leased subscription will expire, or has expired.- Parameters:
expire- The expiry date
-
setIncludeBody
Sets whether the entity wants to receive an XMPP message body in addition to the payload format.- Parameters:
include- true to receive the message body, false otherwise
-
setShowValues
Sets the list ofPresenceStatefor which an entity wants to receive notifications.- Parameters:
stateValues- The list of states
-