public final class RoomRegistration extends Object
DataForm with form type http://jabber.org/protocol/muc#register, which can be used to register with a MUC room.
DataForm to retrieve standard data from it, use:
RoomRegistration roomRegistration = new RoomRegistration(dataForm);
To build a form:
RoomRegistration roomRegistration = RoomRegistration.builder()
.allowRegister(true)
.email("hag66@witchesonline")
.familyName("Entwhistle-Throckmorton")
.givenName("Brunhilde")
.faqEntry("Just another witch.")
.nickname("thirdwitch")
.webPage(new URL("http://witchesonline/~hag66/"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
RoomRegistration.Builder
A builder to build MUC registration forms.
|
| Constructor and Description |
|---|
RoomRegistration(DataForm dataForm) |
| Modifier and Type | Method and Description |
|---|---|
static RoomRegistration.Builder |
builder() |
DataForm |
getDataForm()
Gets the underlying data form.
|
String |
getEmail()
Gets the e-mail address.
|
String |
getFamilyName()
Gets the family name.
|
String |
getFaqEntry()
Gets the FAQ entry.
|
String |
getGivenName()
Gets the given name.
|
String |
getRoomNick()
Gets the desired room nick.
|
URL |
getWebPage()
Gets an URL to a web page.
|
boolean |
isRegisterAllowed()
Indicates, whether the registration request is approved.
|
public RoomRegistration(DataForm dataForm)
public static RoomRegistration.Builder builder()
public String getEmail()
public String getFamilyName()
public String getGivenName()
public String getRoomNick()
public URL getWebPage()
public String getFaqEntry()
public boolean isRegisterAllowed()
public DataForm getDataForm()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.