public abstract class StreamFeature extends Object implements Comparable<StreamFeature>
<stream:features/> element.| Constructor and Description |
|---|
StreamFeature() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StreamFeature o)
Compares two features by their priority and mandatory-to-negotiate flag.
|
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.
|
public boolean isMandatory()
public int getPriority()
public final int compareTo(StreamFeature o)
A
<features/>element that contains both mandatory-to-negotiate and voluntary-to-negotiate features indicates that the negotiation is not complete but that the initiating entity MAY complete the voluntary-to-negotiate feature(s) before it attempts to negotiate the mandatory-to-negotiate feature(s).
compareTo in interface Comparable<StreamFeature>o - The other feature.Copyright © 2014–2018 XMPP.rocks. All rights reserved.