1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-12 14:01:08 +01:00

Globally 's;stanza(/packet);stanza;'

This commit is contained in:
Florian Schmaus 2018-03-31 14:17:30 +02:00
parent 1d12be1644
commit ad87243060
171 changed files with 911 additions and 599 deletions

View file

@ -29,7 +29,7 @@ public class JivePropertiesManager {
private static boolean javaObjectEnabled = false;
/**
* Enables deserialization of Java objects embedded in the 'properties' stanza(/packet) extension. Since
* Enables deserialization of Java objects embedded in the 'properties' stanza extension. Since
* this is a security sensitive feature, it is disabled per default in Smack. Only enable it if
* you are sure that you understand the potential security implications it can cause.
* <p>
@ -51,7 +51,7 @@ public class JivePropertiesManager {
/**
* Convenience method to add a property to a packet.
*
* @param packet the stanza(/packet) to add the property to.
* @param packet the stanza to add the property to.
* @param name the name of the property to add.
* @param value the value of the property to add.
*/
@ -65,7 +65,7 @@ public class JivePropertiesManager {
}
/**
* Convenience method to get a property from a packet. Will return null if the stanza(/packet) contains
* Convenience method to get a property from a packet. Will return null if the stanza contains
* not property with the given name.
*
* @param packet
@ -97,7 +97,7 @@ public class JivePropertiesManager {
}
/**
* Return a map of all properties of the given packet. If the stanza(/packet) contains no properties
* Return a map of all properties of the given packet. If the stanza contains no properties
* extension, an empty map will be returned.
*
* @param packet

View file

@ -41,7 +41,7 @@ import org.jivesoftware.smack.util.stringencoder.Base64;
*/
public class JivePropertiesExtension implements ExtensionElement {
/**
* Namespace used to store stanza(/packet) properties.
* Namespace used to store stanza properties.
*/
public static final String NAMESPACE = "http://www.jivesoftware.com/xmlns/xmpp/properties";
@ -60,7 +60,7 @@ public class JivePropertiesExtension implements ExtensionElement {
}
/**
* Returns the stanza(/packet) property with the specified name or <tt>null</tt> if the
* Returns the stanza property with the specified name or <tt>null</tt> if the
* property doesn't exist. Property values that were originally primitives will
* be returned as their object equivalent. For example, an int property will be
* returned as an Integer, a double as a Double, etc.

View file

@ -41,7 +41,7 @@ public class JivePropertiesExtensionProvider extends ExtensionElementProvider<Ji
* Parse a properties sub-packet. If any errors occur while de-serializing Java object
* properties, an exception will be printed and not thrown since a thrown exception will shut
* down the entire connection. ClassCastExceptions will occur when both the sender and receiver
* of the stanza(/packet) don't have identical versions of the same class.
* of the stanza don't have identical versions of the same class.
* <p>
* Note that you have to explicitly enabled Java object deserialization with @{link
* {@link JivePropertiesManager#setJavaObjectEnabled(boolean)}