public final class RoomRegistration
extends java.lang.Object
Represents a standardized 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.
|
java.lang.String |
getEmail()
Gets the e-mail address.
|
java.lang.String |
getFamilyName()
Gets the family name.
|
java.lang.String |
getFaqEntry()
Gets the FAQ entry.
|
java.lang.String |
getGivenName()
Gets the given name.
|
java.lang.String |
getRoomNick()
Gets the desired room nick.
|
java.net.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 java.lang.String getEmail()
Gets the e-mail address.
public java.lang.String getFamilyName()
Gets the family name.
public java.lang.String getGivenName()
Gets the given name.
public java.lang.String getRoomNick()
Gets the desired room nick.
public java.net.URL getWebPage()
Gets an URL to a web page.
public java.lang.String getFaqEntry()
Gets the FAQ entry.
public boolean isRegisterAllowed()
Indicates, whether the registration request is approved.
public DataForm getDataForm()
Gets the underlying data form.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.