public class JivePropertiesManager extends Object
| Constructor and Description |
|---|
JivePropertiesManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProperty(Stanza packet,
String name,
Object value)
Convenience method to add a property to a packet.
|
static Map<String,Object> |
getProperties(Stanza packet)
Return a map of all properties of the given packet.
|
static Collection<String> |
getPropertiesNames(Stanza packet)
Return a collection of the names of all properties of the given packet.
|
static Object |
getProperty(Stanza packet,
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, String name, 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 Object getProperty(Stanza packet, String name)
packet - name - public static Collection<String> getPropertiesNames(Stanza packet)
packet - public static Map<String,Object> getProperties(Stanza packet)
packet -