public class EndpointPacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_DISCONNECTION
Disconnection element name.
|
static java.lang.String |
ELEMENT_DISPLAY_TEXT
Display text element name.
|
static java.lang.String |
ELEMENT_JOINING
Joining element name.
|
static java.lang.String |
ELEMENT_NAME
The name of the element that contains the endpoint data.
|
static java.lang.String |
ELEMENT_STATUS
Status element name.
|
static java.lang.String |
ENTITY_ATTR_NAME
Entity attribute name.
|
static java.lang.String |
NAMESPACE
The namespace that endpoint belongs to.
|
static java.lang.String |
STATE_ATTR_NAME
Entity attribute name.
|
attributes
Constructor and Description |
---|
EndpointPacketExtension(java.lang.String entity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DisconnectionType |
getDisconnectionType()
Get disconnection type.
|
java.lang.String |
getDisplayText()
Get display text.
|
JoiningType |
getJoiningType()
Get joining type.
|
EndpointStatusType |
getStatus()
Get status.
|
void |
setDisconnectionType(DisconnectionType disconnectionType)
Set disconnection type.
|
void |
setDisplayText(java.lang.String displayText)
Set the display text.
|
void |
setJoiningType(JoiningType joiningType)
Set joining type.
|
void |
setStatus(EndpointStatusType status)
Set status.
|
java.lang.String |
toXML()
Returns an XML representation of this extension.
|
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String ENTITY_ATTR_NAME
public static final java.lang.String STATE_ATTR_NAME
public static final java.lang.String ELEMENT_DISPLAY_TEXT
public static final java.lang.String ELEMENT_STATUS
public static final java.lang.String ELEMENT_DISCONNECTION
public static final java.lang.String ELEMENT_JOINING
public EndpointPacketExtension(java.lang.String entity)
entity
- entitypublic void setDisplayText(java.lang.String displayText)
displayText
- display textpublic void setStatus(EndpointStatusType status)
status
- statuspublic void setDisconnectionType(DisconnectionType disconnectionType)
disconnectionType
- disconnection type.public void setJoiningType(JoiningType joiningType)
joiningType
- joining type.public java.lang.String getDisplayText()
public EndpointStatusType getStatus()
public DisconnectionType getDisconnectionType()
public JoiningType getJoiningType()
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
toXML
in class AbstractPacketExtension
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.