|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.caps.CapsPacketExtension
public class CapsPacketExtension
A PacketExtension implementation for Entity Capabilities packets.
This work is based on Jonas Adahl's smack fork.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The name of the "content" element. |
static String |
HASH_METHOD
The hash method we use for generating the ver string. |
static String |
NAMESPACE
The name space that the Entity Capabilities elements belong to. |
| Constructor Summary | |
|---|---|
CapsPacketExtension()
An empty constructor for the CapsPacketExtension. |
|
CapsPacketExtension(String ext,
String node,
String hash,
String ver)
Creates a new CapsPacketExtension using the specified parameters. |
|
| Method Summary | |
|---|---|
String |
getElementName()
Returns the name of the caps element. |
String |
getExtensions()
Returns the value of the ext parameter as a string set of name tokens specifying additional feature bundles. |
String |
getHash()
Returns the value of the hash parameter indicating the hashing algorithm used to generate the verification string. |
String |
getNamespace()
Returns the Entity Capabilities namespace. |
String |
getNode()
Returns the node URI. |
String |
getVersion()
Returns the version associated with this packet. |
void |
setExtensions(String extensions)
Sets the value of the ext parameter as a string set of name tokens specifying additional feature bundles. |
void |
setHash(String hash)
Sets the value of the hash parameter indicating the hashing algorithm used to generate the verification string. |
void |
setNode(String node)
Specifies the value of the node URI. |
void |
setVersion(String version)
Sets the value of the ver parameter. |
String |
toXML()
Returns the XML representation of the caps packet extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HASH_METHOD
public static final String NAMESPACE
public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public CapsPacketExtension()
public CapsPacketExtension(String ext,
String node,
String hash,
String ver)
ext - a set of name tokens specifying additional info, that is
deprecated and that we keep for backward compatibility.node - a URI that uniquely identifies a software applicationver - a version String.representing the identity of the supported
features.hash - The hashing algorithm used to generate the verification
String.| Method Detail |
|---|
public String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionpublic String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic String getNode()
public void setNode(String node)
node - a URI uniquely identifying the application.public String getVersion()
public void setVersion(String version)
version - the value of the ver parameter.public String getHash()
public void setHash(String hash)
hash - the hashing algorithm used to generate the verification
string.public String getExtensions()
public void setExtensions(String extensions)
extensions - the value of the ext parameter.public String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtension
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||