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:3
namespace.- See Also:
- XEP-0198: Stream Management, XML Schema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StreamManagement.Answer
The implementation of the<a/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.Enable
The implementation of the<enable/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.Enabled
The implementation of the<enabled/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.Failed
The implementation of the<failed/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.HandledCountTooHigh
Indicates that an entity has acknowledged more stanzas than it was sent.static class
StreamManagement.Request
The implementation of the<r/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.Resume
The implementation of the<resume/>
element in theurn:xmpp:sm:3
namespace.static class
StreamManagement.Resumed
The implementation of the<resumed/>
element in theurn:xmpp:sm:3
namespace.
-
Field Summary
Fields Modifier and Type Field Description static String
NAMESPACE
urn:xmpp:sm:3static StreamManagement.Request
REQUEST
The<r/>
element in theurn:xmpp:sm:3
namespace.
-
Constructor Summary
Constructors Constructor Description StreamManagement()
StreamManagement(Boolean required)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.boolean
isMandatory()
Indicates, whether this feature is mandatory to negotiate.String
toString()
-
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:3
namespace.
-
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:StreamFeature
Indicates, whether this feature is mandatory to negotiate. By default a feature is not mandatory. Override this method for mandatory-to-negotiate features.- Overrides:
isMandatory
in classStreamFeature
- Returns:
- True, if the feature is mandatory.
-
getPriority
public final int getPriority()
Description copied from class:StreamFeature
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.- Overrides:
getPriority
in classStreamFeature
- Returns:
- The priority.
-
-