public final class Muc extends Object
<x/> element in the http://jabber.org/protocol/muc namespace, which allows to enter a room.
// To create an empty element, e.g to indicate support in a presence
Muc muc = Muc.empty();
// To create an element with a password.
Muc muc = Muc.withPassword("secret");
This class is immutable.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/muc
|
| Modifier and Type | Method and Description |
|---|---|
static Muc |
empty()
Creates an empty element.
|
String |
toString() |
static Muc |
withHistory(DiscussionHistory discussionHistory)
Creates an element with a history element, indicating the user wishes to retrieve history.
|
static Muc |
withPassword(String password)
Creates an element with a password for the room.
|
static Muc |
withPasswordAndHistory(String password,
DiscussionHistory discussionHistory)
Creates an element with a history element and a password for the room.
|
public static final String NAMESPACE
public static Muc empty()
public static Muc withPassword(String password)
password - The password.public static Muc withHistory(DiscussionHistory discussionHistory)
discussionHistory - The history.public static Muc withPasswordAndHistory(String password, DiscussionHistory discussionHistory)
password - The password.discussionHistory - The history.Copyright © 2014–2017 XMPP.rocks. All rights reserved.