public abstract class ClientStreamFeatureNegotiator<T extends StreamFeature> extends Manager implements StreamFeatureNegotiator<T>
A base class to negotiate features.
Classes which extend from this class are responsible to negotiate a single feature.
Feature negotiators are registered with theStreamFeaturesManager.addFeatureNegotiator(StreamFeatureNegotiator)
method.Constructor and Description |
---|
ClientStreamFeatureNegotiator(XmppSession xmppSession,
java.lang.Class<T> featureClass)
Constructs a feature negotiator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getFeatureClass()
Gets the feature class, this negotiator is responsible for.
|
isEnabled, setEnabled
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canProcess, processNegotiation
public ClientStreamFeatureNegotiator(XmppSession xmppSession, java.lang.Class<T> featureClass)
Constructs a feature negotiator.
xmppSession
- The XMPP session.featureClass
- The feature class, which represents the feature, which will be negotiated.public final java.lang.Class<T> getFeatureClass()
Gets the feature class, this negotiator is responsible for.
getFeatureClass
in interface StreamFeatureNegotiator<T extends StreamFeature>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.