public class JivePropertiesManager extends java.lang.Object
| Constructor and Description |
|---|
JivePropertiesManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProperty(Stanza 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(Stanza packet)
Return a map of all properties of the given packet.
|
static java.util.Collection<java.lang.String> |
getPropertiesNames(Stanza packet)
Return a collection of the names of all properties of the given packet.
|
static java.lang.Object |
getProperty(Stanza 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' stanza(/packet) extension.
|
public JivePropertiesManager()
public static void setJavaObjectEnabled(boolean enabled)
See also:
enabled - true to enable Java object deserializationpublic static boolean isJavaObjectEnabled()
public static void addProperty(Stanza packet, java.lang.String name, java.lang.Object value)
packet - the stanza(/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(Stanza packet, java.lang.String name)
packet - name - public static java.util.Collection<java.lang.String> getPropertiesNames(Stanza packet)
packet - public static java.util.Map<java.lang.String,java.lang.Object> getProperties(Stanza packet)
packet -