Package rocks.xmpp.extensions.sm.model
Class StreamManagement
- java.lang.Object
-
- rocks.xmpp.core.stream.model.StreamFeature
-
- rocks.xmpp.extensions.sm.model.StreamManagement
-
- All Implemented Interfaces:
Comparable<StreamFeature>
public final class StreamManagement extends StreamFeature
The implementation of the<sm/>element in theurn:xmpp:sm:3namespace.- See Also:
- XEP-0198: Stream Management, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamManagement.AnswerThe implementation of the<a/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.EnableThe implementation of the<enable/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.EnabledThe implementation of the<enabled/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.FailedThe implementation of the<failed/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.HandledCountTooHighIndicates that an entity has acknowledged more stanzas than it was sent.static classStreamManagement.RequestThe implementation of the<r/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.ResumeThe implementation of the<resume/>element in theurn:xmpp:sm:3namespace.static classStreamManagement.ResumedThe implementation of the<resumed/>element in theurn:xmpp:sm:3namespace.
-
Field Summary
Fields Modifier and Type Field Description static StringNAMESPACEurn:xmpp:sm:3static StreamManagement.RequestREQUESTThe<r/>element in theurn:xmpp:sm:3namespace.
-
Constructor Summary
Constructors Constructor Description StreamManagement()StreamManagement(Boolean required)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.booleanisMandatory()Indicates, whether this feature is mandatory to negotiate.StringtoString()-
Methods inherited from class rocks.xmpp.core.stream.model.StreamFeature
compareTo, requiresRestart
-
-
-
-
Field Detail
-
REQUEST
public static final StreamManagement.Request REQUEST
The<r/>element in theurn:xmpp:sm:3namespace.
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:sm:3- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StreamManagement
public StreamManagement()
-
StreamManagement
public StreamManagement(Boolean required)
-
-
Method Detail
-
isMandatory
public final boolean isMandatory()
Description copied from class:StreamFeatureIndicates, whether this feature is mandatory to negotiate. By default a feature is not mandatory. Override this method for mandatory-to-negotiate features.- Overrides:
isMandatoryin classStreamFeature- Returns:
- True, if the feature is mandatory.
-
getPriority
public final int getPriority()
Description copied from class:StreamFeatureGets the priority of the feature, i.e. when it will be negotiated during feature negotiation.- Overrides:
getPriorityin classStreamFeature- Returns:
- The priority.
-
-