public class OriginField extends SDPField implements Origin
Modifier and Type | Field and Description |
---|---|
protected Host |
address |
protected String |
addrtype |
protected String |
nettype |
protected String |
username |
CORE_PACKAGE, SDPFIELDS_PACKAGE
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
ATTRIBUTE_FIELD, BANDWIDTH_FIELD, CONNECTION_FIELD, EMAIL_FIELD, INFORMATION_FIELD, KEY_FIELD, MEDIA_FIELD, ORIGIN_FIELD, PHONE_FIELD, PROTO_VERSION_FIELD, REPEAT_FIELD, SESSION_NAME_FIELD, TIME_FIELD, URI_FIELD, ZONE_FIELD
Constructor and Description |
---|
OriginField() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object.
|
String |
encode()
Get the string encoded version of this object
|
String |
getAddress()
Returns the type of the network for this Connection.
|
String |
getAddressType()
Returns the type of the address for this Connection.
|
String |
getAddrtype()
Get the address type member.
|
Host |
getHost()
Get the host member.
|
String |
getNettype()
Get the netType member.
|
String |
getNetworkType()
Returns the type of the network for this Connection
|
long |
getSessId()
Get the sessionID member.
|
String |
getSessIdAsString() |
long |
getSessionId()
Returns the unique identity of the session.
|
long |
getSessionVersion()
Returns the unique version of the session.
|
long |
getSessVersion()
Get the sessionVersion member.
|
String |
getSessVersionAsString() |
String |
getUsername()
Returns the name of the session originator.
|
void |
setAddress(Host a)
Set the address member
|
void |
setAddress(String addr)
Sets the type of the address for this Connection.
|
void |
setAddressType(String type)
Returns the type of the network for this Connection.
|
void |
setAddrtype(String a)
Set the addrtype member
|
void |
setNettype(String n)
Set the nettype member
|
void |
setNetworkType(String type)
Sets the type of the network for this Connection.
|
void |
setSessId(long s)
Set the sessId member
|
void |
setSessionId(long id)
Sets the unique identity of the session.
|
void |
setSessionId(String sessId)
This is a work around for some implementations that do not set a long
session id.
|
void |
setSessionVersion(long version)
Sets the unique version of the session.
|
void |
setSessVersion(long s)
Set the sessVersion member
|
void |
setSessVersion(String s)
Set the session version as a string.
|
void |
setUsername(String user)
Sets the name of the session originator.
|
getFieldName, getTypeChar, toString
dbgPrint, debugDump, equals, getStringRepresentation, initSprint, match, sprint
dbgPrint, dbgPrint, debugDump, encode, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTypeChar
protected String username
protected String nettype
protected String addrtype
protected Host address
public String getUsername() throws SdpParseException
getUsername
in interface Origin
SdpParseException
public long getSessId()
public String getSessIdAsString()
public long getSessVersion()
public String getSessVersionAsString()
public String getNettype()
public String getAddrtype()
public Host getHost()
public void setSessId(long s)
public void setSessionId(String sessId)
public void setSessVersion(long s)
public void setSessVersion(String s)
public void setNettype(String n)
public void setAddrtype(String a)
public void setAddress(Host a)
public void setUsername(String user) throws SdpException
setUsername
in interface Origin
user
- the string username.SdpException
- if the parameter is nullpublic long getSessionId() throws SdpParseException
getSessionId
in interface Origin
SdpParseException
public void setSessionId(long id) throws SdpException
setSessionId
in interface Origin
id
- the session id.SdpException
- if the id is <0public long getSessionVersion() throws SdpParseException
getSessionVersion
in interface Origin
SdpException
SdpParseException
public void setSessionVersion(long version) throws SdpException
setSessionVersion
in interface Origin
version
- the session version.SdpException
- if the version is <0public String getAddress() throws SdpParseException
getAddress
in interface Origin
SdpParseException
public String getAddressType() throws SdpParseException
getAddressType
in interface Origin
SdpParseException
public String getNetworkType() throws SdpParseException
getNetworkType
in interface Origin
SdpParseException
public void setAddress(String addr) throws SdpException
setAddress
in interface Origin
addr
- string address type.SdpException
- if the addr is nullpublic void setAddressType(String type) throws SdpException
setAddressType
in interface Origin
type
- the string network type.SdpException
- if the type is nullpublic void setNetworkType(String type) throws SdpException
setNetworkType
in interface Origin
type
- the string network type.SdpException
- if the type is nullpublic String encode()
public Object clone()
GenericObject
clone
in interface Field
clone
in class GenericObject
Copyright © 2016. All Rights Reserved.