fm.liveswitch.sdp.sctp.MapAttribute Class Reference

AB: Legacy attribute. More...

Public Member Functions

int getPort ()
 Gets the SCTP port. More...
 
String getSctpProtocol ()
 Gets the SCTP sub-protocol (association usage). More...
 
int getStreams ()
 Gets the number of incoming streams. More...
 
 MapAttribute (int port, String protocol, int streams)
 Initializes a new instance of the fm.liveswitch.sdp.sctp.PortAttribute class. More...
 
- Public Member Functions inherited from fm.liveswitch.sdp.Attribute
fm.liveswitch.sdp.AttributeType getAttributeType ()
 Gets this Attribute's Type. More...
 
fm.liveswitch.sdp.AttributeCategory getMultiplexingCategory ()
 Gets the Multiplexing Category of this Attribute. More...
 
void setAttributeType (fm.liveswitch.sdp.AttributeType value)
 Sets this Attribute's Type. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.sctp.MapAttribute fromAttributeValue (String value)
 Initializes a new instance of the fm.liveswitch.sdp.sctp.PortAttribute class. More...
 
- Static Public Member Functions inherited from fm.liveswitch.sdp.Attribute
static fm.liveswitch.sdp.Attribute createAttribute (String name, String value)
 Creates an attribute. More...
 
static String getTypeName (@SuppressWarnings("rawtypes") Class type)
 Gets the name of the attribute type. More...
 
static boolean isMediaLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to media streams. More...
 
static boolean isSessionLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to sessions. More...
 
static fm.liveswitch.sdp.Attribute parse (String s)
 Creates an fm.liveswitch.sdp.ConnectionData instance from a string. More...
 

Protected Member Functions

String getAttributeValue ()
 Gets the internal value of the attribute. More...
 
- Protected Member Functions inherited from fm.liveswitch.sdp.Attribute
 Attribute ()
 
void setMultiplexingCategory (fm.liveswitch.sdp.AttributeCategory value)
 Sets the Multiplexing Category of this Attribute. More...
 

Detailed Description

AB: Legacy attribute.

To be removed when Firefox and Chrome stop using it. The sctpmap attribute maps from a port number (as used in an "m=" line) to an encoding name denoting the payload format to be used on top of the SCTP association or the actual protocol running on top of it. Last appears in https://tools.ietf.org/html/draft-ietf-mmusic-sctp-sdp-06#page-6 Has been replaced in subsequent drafts but is used in Firefox and Chrome for now.

Constructor & Destructor Documentation

◆ MapAttribute()

fm.liveswitch.sdp.sctp.MapAttribute.MapAttribute ( int  port,
String  protocol,
int  streams 
)

Initializes a new instance of the fm.liveswitch.sdp.sctp.PortAttribute class.

Parameters
portThe SCTP port.
protocolThe protocol.
streamsThe streams.

Member Function Documentation

◆ fromAttributeValue()

static fm.liveswitch.sdp.sctp.MapAttribute fm.liveswitch.sdp.sctp.MapAttribute.fromAttributeValue ( String  value)
static

Initializes a new instance of the fm.liveswitch.sdp.sctp.PortAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue()

String fm.liveswitch.sdp.sctp.MapAttribute.getAttributeValue ( )
protected

Gets the internal value of the attribute.

Reimplemented from fm.liveswitch.sdp.Attribute.

◆ getPort()

int fm.liveswitch.sdp.sctp.MapAttribute.getPort ( )

Gets the SCTP port.

◆ getSctpProtocol()

String fm.liveswitch.sdp.sctp.MapAttribute.getSctpProtocol ( )

Gets the SCTP sub-protocol (association usage).

◆ getStreams()

int fm.liveswitch.sdp.sctp.MapAttribute.getStreams ( )

Gets the number of incoming streams.