public final class StreamInitiation
extends java.lang.Object
The implementation of the <si/>
element in the http://jabber.org/protocol/si
namespace.
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
BAD_PROFILE
The implementation of the
<si:bad-profile/> error condition. |
static java.lang.String |
NAMESPACE
|
static java.lang.Object |
NO_VALID_STREAMS
The implementation of the
<si:no-valid-streams/> error condition. |
Constructor and Description |
---|
StreamInitiation(FeatureNegotiation featureNegotiation) |
StreamInitiation(java.lang.String id,
java.lang.String profile,
java.lang.String mimeType,
java.lang.Object profileElement,
FeatureNegotiation featureNegotiation) |
Modifier and Type | Method and Description |
---|---|
FeatureNegotiation |
getFeatureNegotiation()
Gets the feature negotiation element.
|
java.lang.String |
getId()
The “id” attribute is an opaque identifier.
|
java.lang.String |
getMimeType()
The “mime-type” attribute identifies the MIME-type for the data across the stream.
|
java.lang.String |
getProfile()
The “profile” attribute defines the SI profile in use.
|
java.lang.Object |
getProfileElement()
Gets the profile element, e.g.
|
public static final java.lang.String NAMESPACE
public static final java.lang.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.
public static final java.lang.Object NO_VALID_STREAMS
The implementation of the <si:no-valid-streams/>
error condition.
None of the available streams are acceptable.
public StreamInitiation(FeatureNegotiation featureNegotiation)
public StreamInitiation(java.lang.String id, java.lang.String profile, java.lang.String mimeType, java.lang.Object profileElement, FeatureNegotiation featureNegotiation)
public final java.lang.String getId()
The “id” attribute is an opaque identifier. This attribute MUST be present on type=‘set’, and MUST be a valid string.
public final java.lang.String getMimeType()
The “mime-type” attribute identifies the MIME-type for the data across the stream.
public final java.lang.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.
public final java.lang.Object getProfileElement()
Gets the profile element, e.g. SIFileTransferOffer
.
public final FeatureNegotiation getFeatureNegotiation()
Gets the feature negotiation element.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.