Class Jingle.Content
- java.lang.Object
-
- rocks.xmpp.extensions.jingle.model.Jingle.Content
-
- Enclosing class:
- Jingle
public static final class Jingle.Content extends Object
The implementation of the<content/>
element.- See Also:
- 7.3 Content Element
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Jingle.Content.Creator
The creator.static class
Jingle.Content.Senders
The senders.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
Content
public Content(String name, Jingle.Content.Creator creator, ApplicationFormat applicationFormat, TransportMethod transportMethod)
Creates a content element.- Parameters:
name
- The name.creator
- The creator.applicationFormat
- The application type.transportMethod
- The transport method.
-
Content
public Content(String name, Jingle.Content.Creator creator, ApplicationFormat applicationFormat, TransportMethod transportMethod, String disposition, Jingle.Content.Senders senders)
Creates a content element.- Parameters:
name
- The name.creator
- The creator.applicationFormat
- The application type.transportMethod
- The transport method.disposition
- The content disposition.senders
- The senders.
-
-
Method Detail
-
getCreator
public Jingle.Content.Creator getCreator()
Gets the creator of the content.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.
- Returns:
- The creator.
-
getDisposition
public String getDisposition()
Gets the content disposition.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".
- Returns:
- The disposition.
-
getName
public String getName()
Gets the name of the content.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.
- Returns:
- The name.
-
getSenders
public Jingle.Content.Senders getSenders()
Gets the senders.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.
- Returns:
- The senders.
-
getApplicationFormat
public ApplicationFormat getApplicationFormat()
Gets the application type.- Returns:
- The application type.
-
getTransportMethod
public TransportMethod getTransportMethod()
Gets the transport method.- Returns:
- The transport method.
-
-