org.jivesoftware.sparkimpl.plugin.gateways
Class Gateway
java.lang.Object
org.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
org.jivesoftware.sparkimpl.plugin.gateways.Gateway
public class Gateway
- extends org.jivesoftware.smack.packet.IQ
Nested Class Summary |
static class |
Gateway.Provider
An IQProvider for Gateway packet. |
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
org.jivesoftware.smack.packet.IQ.Type |
Field Summary |
static java.lang.String |
ELEMENT_NAME
Element name of the packet extension. |
static java.lang.String |
NAMESPACE
Namespace of the packet extension. |
Fields inherited from class org.jivesoftware.smack.packet.Packet |
ID_NOT_AVAILABLE |
Method Summary |
java.lang.String |
getChildElementXML()
|
java.lang.String |
getJid()
|
static java.lang.String |
getJID(java.lang.String serviceName,
java.lang.String username)
Returns the fully qualified JID of a user. |
java.lang.String |
getUsername()
|
void |
setJid(java.lang.String jid)
|
void |
setUsername(java.lang.String 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, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
- Element name of the packet extension.
- See Also:
- Constant Field Values
NAMESPACE
public static final java.lang.String NAMESPACE
- Namespace of the packet extension.
- See Also:
- Constant Field Values
Gateway
public Gateway()
getJid
public java.lang.String getJid()
setJid
public void setJid(java.lang.String jid)
getUsername
public java.lang.String getUsername()
setUsername
public void setUsername(java.lang.String username)
getChildElementXML
public java.lang.String getChildElementXML()
- Specified by:
getChildElementXML
in class org.jivesoftware.smack.packet.IQ
getJID
public static java.lang.String getJID(java.lang.String serviceName,
java.lang.String username)
throws org.jivesoftware.smack.XMPPException
- Returns the fully qualified JID of a user.
- Parameters:
serviceName
- the service the user belongs to.username
- the name of the user.
- Returns:
- the JID.
- Throws:
org.jivesoftware.smack.XMPPException
- thrown if an exception occurs.