Class Registration.Builder
- java.lang.Object
-
- rocks.xmpp.extensions.register.model.Registration.Builder
-
- Enclosing class:
- Registration
public static final class Registration.Builder extends Object
A builder to build a registration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Registration
build()
Builds the registration.Registration.Builder
city(String city)
Sets the city.Registration.Builder
date(String date)
Sets the date, e.g. birth date.Registration.Builder
email(String email)
Sets the email.Registration.Builder
familyName(String familyName)
Sets the family name.Registration.Builder
givenName(String givenName)
Sets the given name.Registration.Builder
instructions(String instructions)
Sets the instructions.Registration.Builder
name(String name)
Sets the name.Registration.Builder
nickname(String nickname)
Sets the nickname.Registration.Builder
password(String password)
Sets the password.Registration.Builder
phone(String phone)
Sets the phone.Registration.Builder
postalCode(String postalCode)
Sets the postal code.Registration.Builder
region(String region)
Sets the region, e.g. state.Registration.Builder
registered(boolean registered)
Marks the registration as registered.Registration.Builder
registrationForm(DataForm dataForm)
Sets the extended registration form.Registration.Builder
street(String street)
The street.Registration.Builder
url(URL url)
Sets the URL.Registration.Builder
username(String username)
Sets the username.Registration.Builder
webRegistration(URI uri)
Sets the web registration URI.
-
-
-
Method Detail
-
instructions
public Registration.Builder instructions(String instructions)
Sets the instructions.- Parameters:
instructions
- The instructions.- Returns:
- The builder.
-
username
public Registration.Builder username(String username)
Sets the username.- Parameters:
username
- The username.- Returns:
- The builder.
-
password
public Registration.Builder password(String password)
Sets the password.- Parameters:
password
- The password.- Returns:
- The builder.
-
nickname
public Registration.Builder nickname(String nickname)
Sets the nickname.- Parameters:
nickname
- The nickname.- Returns:
- The builder.
-
name
public Registration.Builder name(String name)
Sets the name.- Parameters:
name
- The name.- Returns:
- The builder.
-
givenName
public Registration.Builder givenName(String givenName)
Sets the given name.- Parameters:
givenName
- The given name.- Returns:
- The builder.
-
familyName
public Registration.Builder familyName(String familyName)
Sets the family name.- Parameters:
familyName
- The family name.- Returns:
- The builder.
-
email
public Registration.Builder email(String email)
Sets the email.- Parameters:
email
- The email address.- Returns:
- The builder.
-
street
public Registration.Builder street(String street)
The street.- Parameters:
street
- The street.- Returns:
- The builder.
-
city
public Registration.Builder city(String city)
Sets the city.- Parameters:
city
- The city.- Returns:
- The builder.
-
region
public Registration.Builder region(String region)
Sets the region, e.g. state.- Parameters:
region
- The region.- Returns:
- The builder.
-
postalCode
public Registration.Builder postalCode(String postalCode)
Sets the postal code.- Parameters:
postalCode
- The postal code.- Returns:
- The builder.
-
phone
public Registration.Builder phone(String phone)
Sets the phone.- Parameters:
phone
- The phone.- Returns:
- The builder.
-
url
public Registration.Builder url(URL url)
Sets the URL.- Parameters:
url
- The URL.- Returns:
- The builder.
-
date
public Registration.Builder date(String date)
Sets the date, e.g. birth date.- Parameters:
date
- The date.- Returns:
- The builder.
-
registrationForm
public Registration.Builder registrationForm(DataForm dataForm)
Sets the extended registration form.- Parameters:
dataForm
- The data form.- Returns:
- The builder.
-
webRegistration
public Registration.Builder webRegistration(URI uri)
Sets the web registration URI.- Parameters:
uri
- The uri.- Returns:
- The builder.
-
registered
public Registration.Builder registered(boolean registered)
Marks the registration as registered.- Parameters:
registered
- True, if registered.- Returns:
- The builder.
-
build
public Registration build()
Builds the registration.- Returns:
- The builder.
-
-