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, isMandatory
public 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()
StreamFeature
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
getPriority
in class StreamFeature
public boolean requiresRestart()
StreamFeature
If this feature requires a stream restart after it has been negotiated.
requiresRestart
in class StreamFeature
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.