public class OriginField extends Object implements SdpField
The "o=" field gives the originator of the session (her username and the address of the user's host) plus a session identifier and version number.
In general, the "o=" field serves as a globally unique identifier for this version of this session description, and the subfields excepting the version taken together identify the session irrespective of any modifications.
For privacy reasons, it is sometimes desirable to obfuscate the username and
IP address of the session originator. If this is a concern, an arbitrary
| Modifier and Type | Field and Description |
|---|---|
static char |
FIELD_TYPE |
FIELD_SEPARATOR| Constructor and Description |
|---|
OriginField() |
OriginField(String sessionId,
String address) |
OriginField(String username,
String sessionId,
String sessionVersion,
String netType,
String addressType,
String address) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress() |
String |
getAddressType() |
char |
getFieldType()
Gets the type of the field
|
String |
getNetType() |
String |
getSessionId() |
String |
getSessionVersion() |
String |
getUsername() |
void |
setAddress(String address) |
void |
setAddressType(String addressType) |
void |
setNetType(String netType) |
void |
setSessionId(String sessionId) |
void |
setSessionVersion(String sessionVersion) |
void |
setUsername(String username) |
String |
toString() |
public static final char FIELD_TYPE
public OriginField(String username, String sessionId, String sessionVersion, String netType, String addressType, String address)
public OriginField()
public String getUsername()
public void setUsername(String username)
public String getSessionId()
public void setSessionId(String sessionId)
public String getSessionVersion()
public void setSessionVersion(String sessionVersion)
public String getNetType()
public void setNetType(String netType)
public String getAddressType()
public void setAddressType(String addressType)
public String getAddress()
public void setAddress(String address)
public char getFieldType()
SdpFieldgetFieldType in interface SdpFieldCopyright © 2018 TeleStax, Inc.. All rights reserved.