Package | Description |
---|---|
rocks.xmpp.extensions.muc |
Provides classes for XEP-0045: Multi-User Chat.
|
rocks.xmpp.extensions.muc.model |
Provides XML schema implementations and configuration classes for XEP-0045: Multi-User Chat.
|
Modifier and Type | Method and Description |
---|---|
AsyncResult<Presence> |
ChatRoom.enter(java.lang.String nick,
DiscussionHistory history)
Enters the room and requests history messages.
|
AsyncResult<Presence> |
ChatRoom.enter(java.lang.String nick,
java.lang.String password,
DiscussionHistory history)
Enters the room with a password and requests history messages.
|
Modifier and Type | Method and Description |
---|---|
static DiscussionHistory |
DiscussionHistory.forMaxChars(int maxChars)
Limit the total number of characters in the history to “X” (where the character count is the characters of the complete XML stanzas, not only their XML character data).
|
static DiscussionHistory |
DiscussionHistory.forMaxMessages(int maxMessages)
Limit the total number of messages in the history to “X”.
|
static DiscussionHistory |
DiscussionHistory.forSeconds(int seconds)
Send only the messages received in the last “X” seconds.
|
DiscussionHistory |
Muc.getHistory()
Gets the history.
|
static DiscussionHistory |
DiscussionHistory.none()
Send no history.
|
static DiscussionHistory |
DiscussionHistory.since(java.time.Instant date)
Send only the messages received since the date.
|
Modifier and Type | Method and Description |
---|---|
static Muc |
Muc.withHistory(DiscussionHistory discussionHistory)
Creates an element with a history element, indicating the user wishes to retrieve history.
|
static Muc |
Muc.withPasswordAndHistory(java.lang.String password,
DiscussionHistory discussionHistory)
Creates an element with a history element and a password for the room.
|
Copyright © 2014–2019 XMPP.rocks. All rights reserved.