public static final class RoomRegistration.Builder extends DataForm.Builder<RoomRegistration.Builder>
A builder to build MUC registration forms. The form is of type DataForm.Type.SUBMIT
by default.
Modifier and Type | Method and Description |
---|---|
RoomRegistration.Builder |
allowRegister(boolean allowRegister)
Whether to allow registration with the room.
|
RoomRegistration |
build()
Builds the registration form.
|
RoomRegistration.Builder |
email(java.lang.String email)
The email address.
|
RoomRegistration.Builder |
familyName(java.lang.String familyName)
The family name.
|
RoomRegistration.Builder |
faqEntry(java.lang.String faqEntry)
The FAQ entry.
|
RoomRegistration.Builder |
givenName(java.lang.String givenName)
The given name.
|
RoomRegistration.Builder |
nickname(java.lang.String nickname)
The desired nickname.
|
RoomRegistration.Builder |
webPage(java.net.URL webPage)
The web page.
|
fields, formType, instructions, items, pages, reportedFields, title, type
public RoomRegistration.Builder allowRegister(boolean allowRegister)
Whether to allow registration with the room.
allowRegister
- Whether to allow registration with the room.public RoomRegistration.Builder email(java.lang.String email)
The email address.
email
- The email address.public RoomRegistration.Builder faqEntry(java.lang.String faqEntry)
The FAQ entry.
faqEntry
- The FAQ entry.public RoomRegistration.Builder givenName(java.lang.String givenName)
The given name.
givenName
- The given name.public RoomRegistration.Builder familyName(java.lang.String familyName)
The family name.
familyName
- The family name.public RoomRegistration.Builder nickname(java.lang.String nickname)
The desired nickname.
nickname
- The nickname.public RoomRegistration.Builder webPage(java.net.URL webPage)
The web page.
webPage
- The web page.public RoomRegistration build()
Builds the registration form.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.