Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.keepalive
Class KeepAliveEvent

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.keepalive.KeepAliveEvent

public class KeepAliveEvent
extends org.jivesoftware.smack.packet.IQ

KeepAlive Event. Events are sent if there are no received packets for a specified interval of time. XEP-0199: XMPP Ping.

Author:
Damian Minkov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ.Type
 
Field Summary
static String ELEMENT_NAME
          Element name for ping.
static String NAMESPACE
          Namespace for ping.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
KeepAliveEvent()
          Constructs empty packet
KeepAliveEvent(String from, String to)
          Construct packet for sending.
 
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of this packet
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
Element name for ping.

See Also:
Constant Field Values

NAMESPACE

public static final String NAMESPACE
Namespace for ping.

See Also:
Constant Field Values
Constructor Detail

KeepAliveEvent

public KeepAliveEvent()
Constructs empty packet


KeepAliveEvent

public KeepAliveEvent(String from,
                      String to)
Construct packet for sending.

Parameters:
from - the address of the contact that the packet coming from.
to - the address of the contact that the packet is to be sent to.
Method Detail

getChildElementXML

public String getChildElementXML()
Returns the sub-element XML section of this packet

Specified by:
getChildElementXML in class org.jivesoftware.smack.packet.IQ
Returns:
the packet as XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.