|
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
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 inherited from class org.jivesoftware.smack.packet.IQ |
IQ.Type |
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 |
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 |
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 Map getAttributes()
public void setAttributes(Map attributes)
attributes
- the account attributes.public String getChildElementXML()
IQ
Generally, extensions of this class should override this method. This lets the majority of IQ XML writing be generic, with each sub-class providing just the packet-specific XML.
getChildElementXML
in class IQ
|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |