Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.coin
Class EndpointPacketExtension

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
      extended by net.java.sip.communicator.impl.protocol.jabber.extensions.coin.EndpointPacketExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class EndpointPacketExtension
extends AbstractPacketExtension

Endpoint packet extension.

Author:
Sebastien Vincent

Field Summary
static String ELEMENT_DISCONNECTION
          Disconnection element name.
static String ELEMENT_DISPLAY_TEXT
          Display text element name.
static String ELEMENT_JOINING
          Joining element name.
static String ELEMENT_NAME
          The name of the element that contains the endpoint data.
static String ELEMENT_STATUS
          Status element name.
static String ENTITY_ATTR_NAME
          Entity attribute name.
static String NAMESPACE
          The namespace that endpoint belongs to.
static String STATE_ATTR_NAME
          Entity attribute name.
 
Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
attributes
 
Constructor Summary
EndpointPacketExtension(String entity)
          Constructor.
 
Method Summary
 DisconnectionType getDisconnectionType()
          Get disconnection type.
 String getDisplayText()
          Get display text.
 JoiningType getJoiningType()
          Get joining type.
 EndpointStatusType getStatus()
          Get status.
 void setDisconnectionType(DisconnectionType disconnectionType)
          Set disconnection type.
 void setDisplayText(String displayText)
          Set the display text.
 void setJoiningType(JoiningType joiningType)
          Set joining type.
 void setStatus(EndpointStatusType status)
          Set status.
 String toXML()
          Returns an XML representation of this extension.
 
Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
The namespace that endpoint belongs to.


ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that contains the endpoint data.

See Also:
Constant Field Values

ENTITY_ATTR_NAME

public static final String ENTITY_ATTR_NAME
Entity attribute name.

See Also:
Constant Field Values

STATE_ATTR_NAME

public static final String STATE_ATTR_NAME
Entity attribute name.

See Also:
Constant Field Values

ELEMENT_DISPLAY_TEXT

public static final String ELEMENT_DISPLAY_TEXT
Display text element name.

See Also:
Constant Field Values

ELEMENT_STATUS

public static final String ELEMENT_STATUS
Status element name.

See Also:
Constant Field Values

ELEMENT_DISCONNECTION

public static final String ELEMENT_DISCONNECTION
Disconnection element name.

See Also:
Constant Field Values

ELEMENT_JOINING

public static final String ELEMENT_JOINING
Joining element name.

See Also:
Constant Field Values
Constructor Detail

EndpointPacketExtension

public EndpointPacketExtension(String entity)
Constructor.

Parameters:
entity - entity
Method Detail

setDisplayText

public void setDisplayText(String displayText)
Set the display text.

Parameters:
displayText - display text

setStatus

public void setStatus(EndpointStatusType status)
Set status.

Parameters:
status - status

setDisconnectionType

public void setDisconnectionType(DisconnectionType disconnectionType)
Set disconnection type.

Parameters:
disconnectionType - disconnection type.

setJoiningType

public void setJoiningType(JoiningType joiningType)
Set joining type.

Parameters:
joiningType - joining type.

getDisplayText

public String getDisplayText()
Get display text.

Returns:
display text

getStatus

public EndpointStatusType getStatus()
Get status.

Returns:
status.

getDisconnectionType

public DisconnectionType getDisconnectionType()
Get disconnection type.

Returns:
disconnection type.

getJoiningType

public JoiningType getJoiningType()
Get joining type.

Returns:
joining type.

toXML

public String toXML()
Returns an XML representation of this extension.

Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Overrides:
toXML in class AbstractPacketExtension
Returns:
an XML representation of this extension.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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