|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.packet.Packet org.jivesoftware.smack.packet.IQ org.jivesoftware.smack.packet.Registration
public class Registration
Represents registration packets. An empty GET query will cause the server to return information about it's registration support. SET queries can be used to create accounts or update existing account information. XMPP servers may require a number of attributes to be set when creating a new account. The standard account attributes are as follows:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
---|
IQ.Type |
Field Summary |
---|
Fields inherited from class org.jivesoftware.smack.packet.Packet |
---|
ID_NOT_AVAILABLE |
Constructor Summary | |
---|---|
Registration()
|
Method Summary | |
---|---|
Map |
getAttributes()
Returns the map of String key/value pairs of account attributes. |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. |
String |
getInstructions()
Returns the registration instructions, or null if no instructions have been set. |
String |
getPassword()
Returns the password, or null if no password has been set. |
String |
getUsername()
Returns the username, or null if no username has ben set. |
void |
setAttributes(Map attributes)
Sets the account attributes. |
void |
setInstructions(String instructions)
Sets the registration instructions. |
void |
setPassword(String password)
Sets the password. |
void |
setUsername(String username)
Sets the username. |
Methods inherited from class org.jivesoftware.smack.packet.IQ |
---|
getType, setType, toXML |
Methods inherited from class org.jivesoftware.smack.packet.Packet |
---|
addExtension, deleteProperty, getError, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Registration()
Method Detail |
---|
public String getUsername()
public void setUsername(String username)
username
- the username.public String getPassword()
public void setPassword(String password)
password
- the password.public String getInstructions()
public void setInstructions(String instructions)
instructions
- the registration instructions.public Map getAttributes()
public void setAttributes(Map attributes)
attributes
- the account attributes.public String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |