public final class Registration extends Object
<query/> element in the jabber:iq:register namespace.
Registration registration = Registration.empty();
To create a registration for submission:
Registration registration = Registration.builder()
.username("user")
.password("pass")
.familyName("Family Name")
.givenName("Given Name")
.nickname("Nick Name")
.email("E-Mail")
.build();
To create a registration for removing the current account:
Registration registration = Registration.remove();
This class is immutable.| 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
|
| Modifier and Type | Method and Description |
|---|---|
static Registration.Builder |
builder()
Creates the builder for an registration.
|
static Registration |
empty()
Creates an empty registration element for requesting the registration form.
|
String |
getCity()
Gets the city.
|
String |
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.
|
URI |
getWebRegistrationUri()
Gets the web registration URI, if any.
|
URL |
getWebRegistrationUrl()
Deprecated.
|
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. |
public static final String NAMESPACE
public static Registration remove()
<remove/> element used to indicate account removal.public static Registration empty()
public static Registration.Builder builder()
public boolean isRegistered()
public String getInstructions()
public String getUsername()
public String getNickname()
public String getPassword()
public String getFullName()
public String getGivenName()
public String getLastName()
public String getEmail()
public String getStreet()
public String getCity()
public String getRegion()
public String getPostalCode()
public String getTelephone()
public URL getUrl()
public String getDate()
public DataForm getRegistrationForm()
public URL getWebRegistrationUrl()
getWebRegistrationUri().public URI getWebRegistrationUri()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.