fm.liveswitch.sdp.Origin Class Reference

An SDP origin element. More...

Public Member Functions

String getAddressType ()
 Gets the type of the address. More...
 
String getNetworkType ()
 Gets the type of network. More...
 
long getSessionId ()
 Gets the globally unique identifier for the session. More...
 
long getSessionVersion ()
 Gets the version number for the session. More...
 
String getUnicastAddress ()
 Gets the address of the machine from which the session was created. More...
 
String getUsername ()
 Gets the user's login on the originating host. More...
 
 Origin (String unicastAddress)
 Initializes a new instance of the fm.liveswitch.sdp.Origin class. More...
 
 Origin (String unicastAddress, String username)
 Initializes a new instance of the fm.liveswitch.sdp.Origin class. More...
 
void setAddressType (String value)
 Sets the type of the address. More...
 
void setNetworkType (String value)
 Sets the type of network. More...
 
void setSessionId (long value)
 Sets the globally unique identifier for the session. More...
 
void setSessionVersion (long value)
 Sets the version number for the session. More...
 
void setUnicastAddress (String value)
 Sets the address of the machine from which the session was created. More...
 
void setUsername (String value)
 Sets the user's login on the originating host. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.Origin parse (String s)
 Creates an fm.liveswitch.sdp.Origin instance from a string. More...
 

Detailed Description

An SDP origin element.

Constructor & Destructor Documentation

◆ Origin() [1/2]

fm.liveswitch.sdp.Origin.Origin ( String  unicastAddress)

Initializes a new instance of the fm.liveswitch.sdp.Origin class.

Parameters
unicastAddressThe address of the machine from which the session was created.

◆ Origin() [2/2]

fm.liveswitch.sdp.Origin.Origin ( String  unicastAddress,
String  username 
)

Initializes a new instance of the fm.liveswitch.sdp.Origin class.

Parameters
unicastAddressThe address of the machine from which the session was created.
usernameThe user's login on the originating host.

Member Function Documentation

◆ getAddressType()

String fm.liveswitch.sdp.Origin.getAddressType ( )

Gets the type of the address.

See fm.liveswitch.sdp.Origin#getAddressType for possible values.

◆ getNetworkType()

String fm.liveswitch.sdp.Origin.getNetworkType ( )

Gets the type of network.

See fm.liveswitch.sdp.Origin#getNetworkType for possible values.

◆ getSessionId()

long fm.liveswitch.sdp.Origin.getSessionId ( )

Gets the globally unique identifier for the session.

◆ getSessionVersion()

long fm.liveswitch.sdp.Origin.getSessionVersion ( )

Gets the version number for the session.

◆ getUnicastAddress()

String fm.liveswitch.sdp.Origin.getUnicastAddress ( )

Gets the address of the machine from which the session was created.

◆ getUsername()

String fm.liveswitch.sdp.Origin.getUsername ( )

Gets the user's login on the originating host.

◆ parse()

static fm.liveswitch.sdp.Origin fm.liveswitch.sdp.Origin.parse ( String  s)
static

Creates an fm.liveswitch.sdp.Origin instance from a string.

Parameters
sThe string to parse.

◆ setAddressType()

void fm.liveswitch.sdp.Origin.setAddressType ( String  value)

Sets the type of the address.

See fm.liveswitch.sdp.Origin#getAddressType for possible values.

◆ setNetworkType()

void fm.liveswitch.sdp.Origin.setNetworkType ( String  value)

Sets the type of network.

See fm.liveswitch.sdp.Origin#getNetworkType for possible values.

◆ setSessionId()

void fm.liveswitch.sdp.Origin.setSessionId ( long  value)

Sets the globally unique identifier for the session.

◆ setSessionVersion()

void fm.liveswitch.sdp.Origin.setSessionVersion ( long  value)

Sets the version number for the session.

◆ setUnicastAddress()

void fm.liveswitch.sdp.Origin.setUnicastAddress ( String  value)

Sets the address of the machine from which the session was created.

◆ setUsername()

void fm.liveswitch.sdp.Origin.setUsername ( String  value)

Sets the user's login on the originating host.

◆ toString()

String fm.liveswitch.sdp.Origin.toString ( )

Converts this instance to a string.