Class ServerStreamFeaturesManager


  • public final class ServerStreamFeaturesManager
    extends Object
    Negotiates stream features from a server perspective.

    Each feature which shall be advertised during stream negotiation, must be registered first.

    See Also:
    StreamFeatureProvider
    • Constructor Detail

      • ServerStreamFeaturesManager

        public ServerStreamFeaturesManager()
    • Method Detail

      • registerStreamFeatureProvider

        public final void registerStreamFeatureProvider​(StreamFeatureProvider<? extends StreamFeature> streamFeatureProvider)
        Registers a stream feature negotiator.
        Parameters:
        streamFeatureProvider - The negotiator.
      • getStreamFeatures

        public final Collection<StreamFeature> getStreamFeatures()
        Gets the stream features which shall be advertised. Different stream features may be advertised during different phases of the stream negotiation. E.g. the first and only feature should be STARTTLS, then SASL and only then Resource Binding.
        Returns:
        The stream features.