Package org.jivesoftware.smackx.muc
Class MultiUserChat.MucCreateConfigFormHandle
- java.lang.Object
-
- org.jivesoftware.smackx.muc.MultiUserChat.MucCreateConfigFormHandle
-
- Enclosing class:
- MultiUserChat
public class MultiUserChat.MucCreateConfigFormHandle extends Object
A handle used to configure a newly created room. As long as the room is not configured it will be locked, which means that no one is able to join. The room will become unlocked as soon it got configured. In order to create an instant room, usemakeInstant()
.For advanced configuration options, use
MultiUserChat.getConfigurationForm()
, get the answer form withForm.getFillableForm()
, fill it out and send it back to the room withMultiUserChat.sendConfigurationForm(FillableForm)
.
-
-
Constructor Summary
Constructors Constructor Description MucCreateConfigFormHandle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MucConfigFormManager
getConfigFormManager()
Alias forMultiUserChat.getConfigFormManager()
.void
makeInstant()
Create an instant room.
-
-
-
Constructor Detail
-
MucCreateConfigFormHandle
public MucCreateConfigFormHandle()
-
-
Method Detail
-
makeInstant
public void makeInstant() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
Create an instant room. The default configuration will be accepted and the room will become unlocked, i.e. other users are able to join.- Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.- See Also:
- XEP-45 ยง 10.1.2 Creating an Instant Room
-
getConfigFormManager
public MucConfigFormManager getConfigFormManager() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
Alias forMultiUserChat.getConfigFormManager()
.- Returns:
- a MUC configuration form manager for this room.
- Throws:
SmackException.NoResponseException
- if there was no response from the remote entity.XMPPException.XMPPErrorException
- if there was an XMPP error returned.SmackException.NotConnectedException
- if the XMPP connection is not connected.InterruptedException
- if the calling thread was interrupted.- See Also:
MultiUserChat.getConfigFormManager()
-
-