Interface StreamFeatureNegotiator<T extends StreamFeature>

  • All Known Implementing Classes:
    AbstractStreamManager

    public interface StreamFeatureNegotiator<T extends StreamFeature>
    An interface for various stream negotiators, either from client perspective or server perspective.

    A stream negotiator receives an element from the stream and tries to negotiate the stream feature.

    See Also:
    4.3. Stream Negotiation
    • Method Detail

      • processNegotiation

        StreamNegotiationResult processNegotiation​(Object element)
                                            throws StreamNegotiationException
        Processes a feature protocol element or the feature element itself.
        Parameters:
        element - The XML element, which belongs to the feature negotiation, e.g. <challenge/> for SASL negotiation or the feature element itself, e.g. <mechanisms/>.
        Returns:
        The result of the feature negotiation.
        Throws:
        StreamNegotiationException - Any exception which might be thrown during a feature negotiation.