Interface StreamFeatureNegotiator<T extends StreamFeature>

    • 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.