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/compressnamespace.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.intgetPriority()Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.booleanrequiresRestart()If this feature requires a stream restart after it has been negotiated.StringtoString()-
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:StreamFeatureGets the priority of the feature, i.e. when it will be negotiated during feature negotiation.- Overrides:
getPriorityin classStreamFeature- Returns:
- The priority.
-
requiresRestart
public boolean requiresRestart()
Description copied from class:StreamFeatureIf this feature requires a stream restart after it has been negotiated.- Overrides:
requiresRestartin classStreamFeature- Returns:
- True, if a stream restart is required.
-
-