Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
OriginField retval = new OriginField();
retval.username = this.username;
retval.sessId = this.sessId;
retval.sessVersion = this.sessVersion;
retval.nettype = this.nettype;
retval.addrtype = this.addrtype;
if (this.address != null)
retval.address = (Host) this.address.clone();
return retval;
|
public java.lang.String | encode()Gets the string encoded version of this object.
return ORIGIN_FIELD + username + Separators.SP
+ sessId + Separators.SP
+ sessVersion + Separators.SP
+ nettype + Separators.SP
+ addrtype + Separators.SP
+ address.encode() + Separators.NEWLINE;
|
public java.lang.String | getAddress()Returns the type of the network for this Connection.
Host addr = getHost();
if (addr == null)
return null;
else return addr.getAddress();
|
public java.lang.String | getAddressType()Returns the type of the address for this Connection.
return getAddrtype();
|
public java.lang.String | getAddrtype()Gets the address type member.
return addrtype;
|
public Host | getHost()Gets the host member.
return address;
|
public java.lang.String | getNettype()Gets the network type member.
return nettype;
|
public java.lang.String | getNetworkType()Returns the type of the network for this Connection
return getNettype();
|
public long | getSessId()Gets the session identifier member.
return sessId;
|
public long | getSessVersion()Gets the session version member.
return sessVersion;
|
public long | getSessionId()Returns the unique identity of the session.
return getSessId();
|
public long | getSessionVersion()Returns the unique version of the session.
return getSessVersion();
|
public java.lang.String | getUsername()Returns the name of the session originator.
return username;
|
public void | setAddress(Host a)Sets the address member.
address = a;
|
public void | setAddress(java.lang.String addr)Sets the type of the address for this Connection.
if (addr == null)
throw new SdpException("The addr parameter is null");
else {
Host host = getHost();
if (host == null)
host = new Host();
host.setAddress(addr);
setAddress(host);
}
|
public void | setAddressType(java.lang.String type)Returns the type of the network for this Connection.
if (type == null)
throw new SdpException("The type parameter is < 0");
else
setAddrtype(type);
|
public void | setAddrtype(java.lang.String a)Sets the address type member.
addrtype = a;
|
public void | setNettype(java.lang.String n)Sets the network type member.
nettype = n;
|
public void | setNetworkType(java.lang.String type)Sets the type of the network for this Connection.
if (type == null)
throw new SdpException("The type parameter is < 0");
else setNettype(type);
|
public void | setSessId(long s)Sets the session identifier member.
sessId = s;
|
public void | setSessVersion(long s)Sets the session version member.
sessVersion = s;
|
public void | setSessionId(long id)Sets the unique identity of the session.
if (id < 0)
throw new SdpException("The is parameter is < 0");
else
setSessId(id);
|
public void | setSessionVersion(long version)Sets the unique version of the session.
if (version < 0)
throw new SdpException("The version parameter is < 0");
else
setSessVersion(version);
|
public void | setUsername(java.lang.String user)Sets the name of the session originator.
if (user == null)
throw new SdpException("The user parameter is null");
else {
this.username = user;
}
|