org.jivesoftware.smack.packet
Class Bind
java.lang.Object
   org.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.Packet
       org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ
           org.jivesoftware.smack.packet.Bind
org.jivesoftware.smack.packet.Bind
- public class Bind 
- extends IQ
IQ packet used by Smack to bind a resource and to obtain the jid assigned by the server.
 There are two ways to bind a resource. One is simply sending an empty Bind packet where the
 server will assign a new resource for this connection. The other option is to set a desired
 resource but the server may return a modified version of the sent resource.
 For more information refer to the following
 link.
- Author:
- Gaston Dombiak
 
| Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ | 
| IQ.Type | 
 
 
 
| Constructor Summary | 
| Bind()
 | 
 
 
 
| Methods inherited from class org.jivesoftware.smack.packet.Packet | 
| addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo | 
 
 
Bind
public Bind()
getResource
public String getResource()
- 
 
setResource
public void setResource(String resource)
- 
 
getJid
public String getJid()
- 
 
setJid
public void setJid(String jid)
- 
 
getChildElementXML
public String getChildElementXML()
- Description copied from class: IQ
- Returns the sub-element XML section of the IQ packet, or null if there
 isn't one. Packet extensions must be included, if any are defined.
 Extensions of this class must override this method.
 
 
- 
- Specified by:
- getChildElementXMLin class- IQ
 
- 
- Returns:
- the child element section of the IQ XML.
 
Copyright © 2003-2007 Jive Software.