Class CompressionFeature
- java.lang.Object
-
- rocks.xmpp.core.stream.model.StreamFeature
-
- rocks.xmpp.extensions.compress.model.feature.CompressionFeature
-
- All Implemented Interfaces:
Comparable<StreamFeature>
public final class CompressionFeature extends StreamFeature
The implementation of the<compression/>
element in thehttp://jabber.org/features/compress
namespace.This class is immutable.
- See Also:
- XEP-0138: Stream Compression, XML Schema
-
-
Constructor Summary
Constructors Constructor Description CompressionFeature(Collection<String> methods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getMethods()
Gets the available compression methods.int
getPriority()
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.boolean
requiresRestart()
If this feature requires a stream restart after it has been negotiated.String
toString()
-
Methods inherited from class rocks.xmpp.core.stream.model.StreamFeature
compareTo, isMandatory
-
-
-
-
Constructor Detail
-
CompressionFeature
public CompressionFeature(Collection<String> methods)
-
-
Method Detail
-
getMethods
public final List<String> getMethods()
Gets the available compression methods.- Returns:
- The compression methods.
-
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.
-
requiresRestart
public boolean requiresRestart()
Description copied from class:StreamFeature
If this feature requires a stream restart after it has been negotiated.- Overrides:
requiresRestart
in classStreamFeature
- Returns:
- True, if a stream restart is required.
-
-