Package org.jivesoftware.smackx.mam
Class MamManager.MamQueryArgs.Builder
java.lang.Object
org.jivesoftware.smackx.mam.MamManager.MamQueryArgs.Builder
- Enclosing class:
- MamManager.MamQueryArgs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies a message UID as 'before' anchor for the query.build()
limitResultsBefore
(Date end) limitResultsSince
(Date start) limitResultsToJid
(Jid withJid) Only return the count of messages the query yields, not the actual messages.Query from the last, i.e.setResultPageSize
(Integer max) setResultPageSizeTo
(int max) withAdditionalFormField
(FormField formField) withAdditionalFormFields
(List<FormField> additionalFields)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryNode
-
limitResultsToJid
-
limitResultsSince
-
limitResultsBefore
-
setResultPageSize
-
setResultPageSizeTo
-
onlyReturnMessageCount
Only return the count of messages the query yields, not the actual messages. Note that not all services return a correct count, some return an approximate count.- Returns:
- an reference to this builder.
- See Also:
-
withAdditionalFormField
-
withAdditionalFormFields
-
afterUid
-
beforeUid
Specifies a message UID as 'before' anchor for the query. Note that unlikeafterUid(String)
this method also accepts the empty String to query the last page of an archive (c.f. XEP-0059 § 2.5).- Parameters:
beforeUid
- a message UID acting as 'before' query anchor.- Returns:
- an instance to this builder.
-
queryLastPage
Query from the last, i.e. most recent, page of the archive. This will return the very last page of the archive holding the most recent matching messages. You usually would page backwards from there on.- Returns:
- a reference to this builder.
- See Also:
-
build
-