public final class Registration extends Object
<query/> element in the jabber:iq:register namespace.| Modifier and Type | Class and Description |
|---|---|
static class |
Registration.Builder
A builder to build a registration.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
jabber:iq:register
|
| Constructor and Description |
|---|
Registration()
Creates an empty registration element to request the registration.
|
Registration(boolean remove)
Deprecated.
Use
remove() |
Registration(DataForm dataForm)
Deprecated.
Use
builder()} |
Registration(String username,
String password)
Deprecated.
Use
builder()} |
Registration(String username,
String password,
String email)
Deprecated.
Use
builder()} |
| Modifier and Type | Method and Description |
|---|---|
static Registration.Builder |
builder()
Creates the builder for an registration.
|
String |
getCity()
Gets the city.
|
Date |
getDate()
Gets some date (e.g. birth date, hire date, sign-up date).
|
String |
getEmail()
Gets the email street.
|
String |
getFullName()
Gets the full name.
|
String |
getGivenName()
Gets the given name.
|
String |
getInstructions()
Gets the registration instructions.
|
String |
getLastName()
Gets the familyName name.
|
String |
getNickname()
Gets the nickname.
|
String |
getPassword()
Gets the password.
|
String |
getPostalCode()
Gets the postal code.
|
String |
getRegion()
Gets the region.
|
DataForm |
getRegistrationForm()
Gets the extended registration form.
|
String |
getStreet()
Gets the street.
|
String |
getTelephone()
Gets the telephone number.
|
URL |
getUrl()
Gets the URL to a web page.
|
String |
getUsername()
Gets the username.
|
URL |
getWebRegistrationUrl()
Gets the web registration URL, if any.
|
boolean |
isRegistered()
Indicates whether the account is already registered.
|
static Registration |
remove()
Creates a registration element with an
<remove/> element used to indicate account removal. |
void |
setCity(String city)
Deprecated.
Use
Registration.Builder. |
void |
setDate(Date date)
Deprecated.
Use
Registration.Builder. |
void |
setEmail(String email)
Deprecated.
Use
Registration.Builder. |
void |
setFullName(String name)
Deprecated.
Use
Registration.Builder. |
void |
setGivenName(String givenName)
Deprecated.
Use
Registration.Builder. |
void |
setLastName(String last)
Deprecated.
Use
Registration.Builder. |
void |
setNickname(String nickname)
Deprecated.
Use
Registration.Builder. |
void |
setPassword(String password)
Deprecated.
Use
Registration.Builder. |
void |
setPostalCode(String postalCode)
Deprecated.
Use
Registration.Builder. |
void |
setRegion(String region)
Deprecated.
Use
Registration.Builder. |
void |
setRegistrationForm(DataForm dataForm)
Deprecated.
Use
Registration.Builder. |
void |
setStreet(String street)
Deprecated.
Use
Registration.Builder. |
void |
setTelephone(String telephone)
Deprecated.
Use
Registration.Builder. |
void |
setUrl(URL url)
Deprecated.
Use
Registration.Builder. |
void |
setUsername(String username)
Deprecated.
Use
Registration.Builder. |
public static final String NAMESPACE
public Registration()
@Deprecated public Registration(DataForm dataForm)
builder()}dataForm - The data form.@Deprecated public Registration(String username, String password, String email)
builder()}username - The username.password - The password.email - The email address.@Deprecated public Registration(String username, String password)
builder()}username - The username.password - The password.@Deprecated public Registration(boolean remove)
remove()remove - True, if remove.public static Registration remove()
<remove/> element used to indicate account removal.public static Registration.Builder builder()
public boolean isRegistered()
public String getInstructions()
public String getUsername()
setUsername(String)@Deprecated public void setUsername(String username)
Registration.Builder.username - The username.getUsername()public String getNickname()
setNickname(String)@Deprecated public void setNickname(String nickname)
Registration.Builder.nickname - The nickname.getNickname()public String getPassword()
setPassword(String)@Deprecated public void setPassword(String password)
Registration.Builder.password - The password.getPassword()public String getFullName()
setFullName(String)@Deprecated public void setFullName(String name)
Registration.Builder.name - The full name.getFullName()public String getGivenName()
setGivenName(String)@Deprecated public void setGivenName(String givenName)
Registration.Builder.givenName - The given name.getGivenName()public String getLastName()
setLastName(String)@Deprecated public void setLastName(String last)
Registration.Builder.last - The familyName name.getLastName()public String getEmail()
setEmail(String)@Deprecated public void setEmail(String email)
Registration.Builder.email - The email street.public String getStreet()
setStreet(String)@Deprecated public void setStreet(String street)
Registration.Builder.street - The street.getStreet()public String getCity()
setCity(String)@Deprecated public void setCity(String city)
Registration.Builder.city - The city.getCity()public String getRegion()
setRegion(String)@Deprecated public void setRegion(String region)
Registration.Builder.region - The region.getRegion()public String getPostalCode()
setPostalCode(String)@Deprecated public void setPostalCode(String postalCode)
Registration.Builder.postalCode - The postal code.getPostalCode()public String getTelephone()
setTelephone(String)@Deprecated public void setTelephone(String telephone)
Registration.Builder.telephone - The telephone number.getTelephone()public URL getUrl()
setUrl(java.net.URL)@Deprecated public void setUrl(URL url)
Registration.Builder.url - The URL.getUrl()public Date getDate()
setDate(java.util.Date)@Deprecated public void setDate(Date date)
Registration.Builder.date - The date.getDate()public DataForm getRegistrationForm()
setRegistrationForm(rocks.xmpp.extensions.data.model.DataForm)@Deprecated public void setRegistrationForm(DataForm dataForm)
Registration.Builder.dataForm - The registration form.getRegistrationForm()public URL getWebRegistrationUrl()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.