Package org.jivesoftware.smackx.muc
Class MultiUserChat.MucCreateConfigFormHandle
java.lang.Object
org.jivesoftware.smackx.muc.MultiUserChat.MucCreateConfigFormHandle
- Enclosing class:
- MultiUserChat
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, use
makeInstant()
.
For advanced configuration options, use MultiUserChat.getConfigurationForm()
, get the answer form with
Form.getFillableForm()
, fill it out and send it back to the room with
MultiUserChat.sendConfigurationForm(FillableForm)
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlias forMultiUserChat.getConfigFormManager()
.void
Create an instant room.
-
Constructor Details
-
MucCreateConfigFormHandle
public MucCreateConfigFormHandle()
-
-
Method Details
-
makeInstant
public void makeInstant() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedExceptionCreate 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:
-
getConfigFormManager
public MucConfigFormManager getConfigFormManager() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedExceptionAlias 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:
-