Package rocks.xmpp.extensions.si.model
Class StreamInitiation
- java.lang.Object
-
- rocks.xmpp.extensions.si.model.StreamInitiation
-
public final class StreamInitiation extends Object
The implementation of the<si/>
element in thehttp://jabber.org/protocol/si
namespace.This class is immutable.
- See Also:
- XEP-0095: Stream Initiation, XML Schema
-
-
Field Summary
Fields Modifier and Type Field Description static Object
BAD_PROFILE
The implementation of the<si:bad-profile/>
error condition.static String
NAMESPACE
http://jabber.org/protocol/sistatic Object
NO_VALID_STREAMS
The implementation of the<si:no-valid-streams/>
error condition.
-
Constructor Summary
Constructors Constructor Description StreamInitiation(String id, String profile, String mimeType, Object profileElement, FeatureNegotiation featureNegotiation)
StreamInitiation(FeatureNegotiation featureNegotiation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureNegotiation
getFeatureNegotiation()
Gets the feature negotiation element.String
getId()
The "id" attribute is an opaque identifier.String
getMimeType()
The "mime-type" attribute identifies the MIME-type for the data across the stream.String
getProfile()
The "profile" attribute defines the SI profile in use.Object
getProfileElement()
Gets the profile element, e.g.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/si- See Also:
- Constant Field Values
-
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.
-
-
Constructor Detail
-
StreamInitiation
public StreamInitiation(FeatureNegotiation featureNegotiation)
-
StreamInitiation
public StreamInitiation(String id, String profile, String mimeType, Object profileElement, FeatureNegotiation featureNegotiation)
-
-
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.
-
-