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 Registrationbuild()Builds the registration.Registration.Buildercity(String city)Sets the city.Registration.Builderdate(String date)Sets the date, e.g. birth date.Registration.Builderemail(String email)Sets the email.Registration.BuilderfamilyName(String familyName)Sets the family name.Registration.BuildergivenName(String givenName)Sets the given name.Registration.Builderinstructions(String instructions)Sets the instructions.Registration.Buildername(String name)Sets the name.Registration.Buildernickname(String nickname)Sets the nickname.Registration.Builderpassword(String password)Sets the password.Registration.Builderphone(String phone)Sets the phone.Registration.BuilderpostalCode(String postalCode)Sets the postal code.Registration.Builderregion(String region)Sets the region, e.g. state.Registration.Builderregistered(boolean registered)Marks the registration as registered.Registration.BuilderregistrationForm(DataForm dataForm)Sets the extended registration form.Registration.Builderstreet(String street)The street.Registration.Builderurl(URL url)Sets the URL.Registration.Builderusername(String username)Sets the username.Registration.BuilderwebRegistration(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.
-
-