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, 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 Details

    • MucCreateConfigFormHandle

      public MucCreateConfigFormHandle()
  • Method Details

    • makeInstant

      public void makeInstant() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.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:
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
      See Also:
    • getConfigFormManager

      public MucConfigFormManager getConfigFormManager() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Returns:
      a MUC configuration form manager for this room.
      Throws:
      org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.
      org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.
      org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.
      InterruptedException - if the calling thread was interrupted.
      See Also: