public static final class Jingle.Content extends Object
<content/> element.| Modifier and Type | Class and Description |
|---|---|
static class |
Jingle.Content.Creator
The creator.
|
static class |
Jingle.Content.Senders
The senders.
|
| Constructor and Description |
|---|
Content(String name,
Jingle.Content.Creator creator,
ApplicationFormat applicationFormat,
TransportMethod transportMethod)
Creates a content element.
|
Content(String name,
Jingle.Content.Creator creator,
ApplicationFormat applicationFormat,
TransportMethod transportMethod,
String disposition,
Jingle.Content.Senders senders)
Creates a content element.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationFormat |
getApplicationFormat()
Gets the application type.
|
Jingle.Content.Creator |
getCreator()
Gets the creator of the content.
|
String |
getDisposition()
Gets the content disposition.
|
String |
getName()
Gets the name of the content.
|
Jingle.Content.Senders |
getSenders()
Gets the senders.
|
TransportMethod |
getTransportMethod()
Gets the transport method.
|
public Content(String name, Jingle.Content.Creator creator, ApplicationFormat applicationFormat, TransportMethod transportMethod)
name - The name.creator - The creator.applicationFormat - The application type.transportMethod - The transport method.public Content(String name, Jingle.Content.Creator creator, ApplicationFormat applicationFormat, TransportMethod transportMethod, String disposition, Jingle.Content.Senders senders)
name - The name.creator - The creator.applicationFormat - The application type.transportMethod - The transport method.disposition - The content disposition.senders - The senders.public Jingle.Content.Creator getCreator()
Which party originally generated the content type (used to prevent race conditions regarding modifications); the defined values are "initiator" and "responder" (where the default is "initiator"). The value of the 'creator' attribute for a given content type MUST always match the party that originally generated the content type, even for Jingle actions that are sent by the other party in relation to that content type (e.g., subsequent content-modify or transport-info messages). The combination of the 'creator' attribute and the 'name' attribute is unique among both parties to a Jingle session.
public String getDisposition()
How the content definition is to be interpreted by the recipient. The meaning of this attribute matches the "Content-Disposition" header as defined in RFC 2183 and applied to SIP by RFC 3261. The value of this attribute SHOULD be one of the values registered in the IANA Mail Content Disposition Values and Parameters Registry. The default value of this attribute is "session".
public String getName()
A unique name or identifier for the content type according to the creator, which MAY have meaning to a human user in order to differentiate this content type from other content types (e.g., two content types containing video media could differentiate between "room-pan" and "slides"). If there are two content types with the same value for the 'name' attribute, they shall understood as alternative definitions for the same purpose (e.g., a legacy method and a standards-based method for establishing a voice call), typically to smooth the transition from an older technology to Jingle.
public Jingle.Content.Senders getSenders()
Which parties in the session will be generating content (i.e., the direction in which a Jingle session is active); the allowable values are "both", "initiator", "none", and "responder" (where the default is "both"). Note that the defined values of the 'senders' attribute in Jingle correspond to the SDP attributes of "sendrecv", "sendonly", "inactive", and "recvonly" defined in RFC 4566 and used in the offer-answer model RFC 3264.
public ApplicationFormat getApplicationFormat()
public TransportMethod getTransportMethod()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.