Class FeatureNegotiation


  • public final class FeatureNegotiation
    extends Object
    The implementation of the <feature/> element in the http://jabber.org/protocol/feature-neg namespace.

    1. Introduction

    The protocol defined herein enables Jabber entities to negotiate options for specific features. These features could be negotiated between any two endpoints on the Jabber network, such as two clients, a client and a component, two components, a client and a server, or two servers. The protocol is generic enough that it can be used whenever options need to be negotiated between two Jabber entities. For examples, Stream Initiation (XEP-0095) [2], SI File Transfer (XEP-0096) [3] or Stanza Session Negotiation (XEP-0155) [4].

    This class is immutable.
    See Also:
    XEP-0020: Feature Negotiation, XML Schema
    • Constructor Detail

      • FeatureNegotiation

        public FeatureNegotiation​(DataForm dataForm)
        Creates a feature negotiation with structured data.
        Parameters:
        dataForm - The structured data form, which contains feature negotiation details.
    • Method Detail

      • getDataForm

        public final DataForm getDataForm()
        Gets the data form, which contains feature negotiation details.
        Returns:
        The data form.