Class StreamInitiation


  • public final class StreamInitiation
    extends Object
    The implementation of the <si/> element in the http://jabber.org/protocol/si namespace.

    This class is immutable.

    See Also:
    XEP-0095: Stream Initiation, XML Schema
    • Field Detail

      • BAD_PROFILE

        public static final Object BAD_PROFILE
        The implementation of the <si:bad-profile/> error condition.

        The profile is not understood or invalid. The profile MAY supply a profile-specific error condition.

      • NO_VALID_STREAMS

        public static final Object NO_VALID_STREAMS
        The implementation of the <si:no-valid-streams/> error condition.

        None of the available streams are acceptable.

    • Method Detail

      • getId

        public final String getId()
        The "id" attribute is an opaque identifier. This attribute MUST be present on type='set', and MUST be a valid string.
        Returns:
        The id.
      • getMimeType

        public final String getMimeType()
        The "mime-type" attribute identifies the MIME-type for the data across the stream.
        Returns:
        The MIME type.
      • getProfile

        public final String getProfile()
        The "profile" attribute defines the SI profile in use. This value MUST be present during negotiation, and is the namespace of the profile to use.
        Returns:
        The profile.
      • getProfileElement

        public final Object getProfileElement()
        Gets the profile element, e.g. SIFileTransferOffer.
        Returns:
        The profile element.
      • getFeatureNegotiation

        public final FeatureNegotiation getFeatureNegotiation()
        Gets the feature negotiation element.
        Returns:
        The feature negotiation.