public final class StreamInitiation extends Object
<si/> element in the http://jabber.org/protocol/si namespace.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static Object |
BAD_PROFILE
The implementation of the
<si:bad-profile/> error condition. |
static String |
NAMESPACE
http://jabber.org/protocol/si
|
static Object |
NO_VALID_STREAMS
The implementation of the
<si:no-valid-streams/> error condition. |
| Constructor and Description |
|---|
StreamInitiation(FeatureNegotiation featureNegotiation) |
StreamInitiation(String id,
String profile,
String mimeType,
Object profileElement,
FeatureNegotiation featureNegotiation) |
| Modifier and Type | Method and 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.
|
public static final String NAMESPACE
public static final Object BAD_PROFILE
<si:bad-profile/> error condition.
The profile is not understood or invalid. The profile MAY supply a profile-specific error condition.
public static final Object NO_VALID_STREAMS
<si:no-valid-streams/> error condition.
None of the available streams are acceptable.
public StreamInitiation(FeatureNegotiation featureNegotiation)
public StreamInitiation(String id, String profile, String mimeType, Object profileElement, FeatureNegotiation featureNegotiation)
public final String getId()
public final String getMimeType()
public final String getProfile()
public final Object getProfileElement()
SIFileTransferOffer.public final FeatureNegotiation getFeatureNegotiation()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.