public final class CompressionFeature extends StreamFeature
The implementation of the <compression/> element in the http://jabber.org/features/compress namespace.
This class is immutable.
| Constructor and Description |
|---|
CompressionFeature(java.util.Collection<java.lang.String> methods) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.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.
|
java.lang.String |
toString() |
compareTo, isMandatorypublic CompressionFeature(java.util.Collection<java.lang.String> methods)
public final java.util.List<java.lang.String> getMethods()
Gets the available compression methods.
public final int getPriority()
StreamFeatureGets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
getPriority in class StreamFeaturepublic boolean requiresRestart()
StreamFeatureIf this feature requires a stream restart after it has been negotiated.
requiresRestart in class StreamFeaturepublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.