public final class Registration
extends java.lang.Object
The implementation of the <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 java.lang.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.
|
java.lang.String |
getCity()
Gets the city.
|
java.lang.String |
getDate()
Gets some date (e.g. birth date, hire date, sign-up date).
|
java.lang.String |
getEmail()
Gets the email street.
|
java.lang.String |
getFullName()
Gets the full name.
|
java.lang.String |
getGivenName()
Gets the given name.
|
java.lang.String |
getInstructions()
Gets the registration instructions.
|
java.lang.String |
getLastName()
Gets the familyName name.
|
java.lang.String |
getNickname()
Gets the nickname.
|
java.lang.String |
getPassword()
Gets the password.
|
java.lang.String |
getPostalCode()
Gets the postal code.
|
java.lang.String |
getRegion()
Gets the region.
|
DataForm |
getRegistrationForm()
Gets the extended registration form.
|
java.lang.String |
getStreet()
Gets the street.
|
java.lang.String |
getTelephone()
Gets the telephone number.
|
java.net.URL |
getUrl()
Gets the URL to a web page.
|
java.lang.String |
getUsername()
Gets the username.
|
java.net.URI |
getWebRegistrationUri()
Gets the web registration URI, if any.
|
java.net.URL |
getWebRegistrationUrl()
Deprecated.
|
boolean |
isRegistered()
Indicates whether the account is already registered.
|
boolean |
isRemove()
Indicates whether the account is to be removed.
|
static Registration |
remove()
Creates a registration element with an
<remove/> element used to indicate account removal. |
public static final java.lang.String NAMESPACE
jabber:iq:register
public static Registration remove()
Creates a registration element with an <remove/>
element used to indicate account removal.
public static Registration empty()
Creates an empty registration element for requesting the registration form.
public static Registration.Builder builder()
Creates the builder for an registration.
public boolean isRegistered()
Indicates whether the account is already registered.
public java.lang.String getInstructions()
Gets the registration instructions.
public java.lang.String getUsername()
Gets the username.
public java.lang.String getNickname()
Gets the nickname.
public java.lang.String getPassword()
Gets the password.
public java.lang.String getFullName()
Gets the full name.
public java.lang.String getGivenName()
Gets the given name.
public java.lang.String getLastName()
Gets the familyName name.
public java.lang.String getEmail()
Gets the email street.
public java.lang.String getStreet()
Gets the street.
public java.lang.String getCity()
Gets the city.
public java.lang.String getRegion()
Gets the region.
public java.lang.String getPostalCode()
Gets the postal code.
public java.lang.String getTelephone()
Gets the telephone number.
public java.net.URL getUrl()
Gets the URL to a web page.
public java.lang.String getDate()
Gets some date (e.g. birth date, hire date, sign-up date).
public DataForm getRegistrationForm()
Gets the extended registration form.
@Deprecated public java.net.URL getWebRegistrationUrl()
getWebRegistrationUri()
.Gets the web registration URL, if any.
public java.net.URI getWebRegistrationUri()
Gets the web registration URI, if any.
public boolean isRemove()
Indicates whether the account is to be removed.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.