Package rocks.xmpp.extensions.muc.model
Class RoomRegistration.Builder
- java.lang.Object
-
- rocks.xmpp.extensions.data.model.DataForm.Builder<RoomRegistration.Builder>
-
- rocks.xmpp.extensions.muc.model.RoomRegistration.Builder
-
- Enclosing class:
- RoomRegistration
public static final class RoomRegistration.Builder extends DataForm.Builder<RoomRegistration.Builder>
A builder to build MUC registration forms. The form is of typeDataForm.Type.SUBMITby default.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoomRegistration.BuilderallowRegister(boolean allowRegister)Whether to allow registration with the room.RoomRegistrationbuild()Builds the registration form.RoomRegistration.Builderemail(String email)The email address.RoomRegistration.BuilderfamilyName(String familyName)The family name.RoomRegistration.BuilderfaqEntry(String faqEntry)The FAQ entry.RoomRegistration.BuildergivenName(String givenName)The given name.RoomRegistration.Buildernickname(String nickname)The desired nickname.RoomRegistration.BuilderwebPage(URL webPage)The web page.-
Methods inherited from class rocks.xmpp.extensions.data.model.DataForm.Builder
fields, formType, instructions, items, pages, reportedFields, title, type
-
-
-
-
Method Detail
-
allowRegister
public RoomRegistration.Builder allowRegister(boolean allowRegister)
Whether to allow registration with the room.- Parameters:
allowRegister- Whether to allow registration with the room.- Returns:
- THe builder.
-
email
public RoomRegistration.Builder email(String email)
The email address.- Parameters:
email- The email address.- Returns:
- The builder.
-
faqEntry
public RoomRegistration.Builder faqEntry(String faqEntry)
The FAQ entry.- Parameters:
faqEntry- The FAQ entry.- Returns:
- The builder.
-
givenName
public RoomRegistration.Builder givenName(String givenName)
The given name.- Parameters:
givenName- The given name.- Returns:
- The builder.
-
familyName
public RoomRegistration.Builder familyName(String familyName)
The family name.- Parameters:
familyName- The family name.- Returns:
- The builder.
-
nickname
public RoomRegistration.Builder nickname(String nickname)
The desired nickname.- Parameters:
nickname- The nickname.- Returns:
- The builder.
-
webPage
public RoomRegistration.Builder webPage(URL webPage)
The web page.- Parameters:
webPage- The web page.- Returns:
- The builder.
-
build
public RoomRegistration build()
Builds the registration form.- Returns:
- The registration form.
-
-