public class JivePropertiesManager
extends java.lang.Object
| Constructor and Description |
|---|
JivePropertiesManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProperty(Packet packet,
java.lang.String name,
java.lang.Object value)
Convenience method to add a property to a packet.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getProperties(Packet packet)
Return a map of all properties of the given packet.
|
static java.util.Collection<java.lang.String> |
getPropertiesNames(Packet packet)
Return a collection of the names of all properties of the given packet.
|
static java.lang.Object |
getProperty(Packet packet,
java.lang.String name)
Convenience method to get a property from a packet.
|
static boolean |
isJavaObjectEnabled() |
static void |
setJavaObjectEnabled(boolean enabled)
Enables deserialization of Java objects embedded in the 'properties' packet extension.
|
public static void setJavaObjectEnabled(boolean enabled)
See also:
enabled - true to enable Java object deserializationpublic static boolean isJavaObjectEnabled()
public static void addProperty(Packet packet, java.lang.String name, java.lang.Object value)
packet - the packet to add the property to.name - the name of the property to add.value - the value of the property to add.public static java.lang.Object getProperty(Packet packet, java.lang.String name)
packet - name - public static java.util.Collection<java.lang.String> getPropertiesNames(Packet packet)
packet - public static java.util.Map<java.lang.String,java.lang.Object> getProperties(Packet packet)
packet -