Methods Summary |
---|
public java.lang.Object | clone()Deep copy clone operation.
TelURL retval = new TelURL();
retval.scheme = this.scheme;
if (this.telephoneNumber != null) {
retval.telephoneNumber =
(TelephoneNumber)this.telephoneNumber.clone();
}
return retval;
|
public java.lang.String | encode()Encodes contents in a string.
return this.scheme + ":" + telephoneNumber.encode();
|
public java.lang.String | getIsdnSubAddress()Returns the value of the isdnSubAddress parameter, or null
if it is not set.
return telephoneNumber.getIsdnSubaddress();
|
public java.util.Vector | getParameterNames()Returns an Iterator over the names (Strings) of all parameters present
in this ParametersHeader.
if (null != telephoneNumber) {
return telephoneNumber.parms.getNames();
}
return null;
|
public java.lang.String | getPhoneNumber()Get the telephone number.
return this.telephoneNumber.getPhoneNumber();
|
public java.lang.String | getPlainURI()Returns the URI part of the address (without parameters)
i.e. scheme:user@host:port.
StringBuffer retval = new StringBuffer();
retval.append(scheme).append(":");
if (telephoneNumber.isGlobal()) {
retval.append("+");
}
retval.append(telephoneNumber.getPhoneNumber());
return retval.toString();
|
public java.lang.String | getPostDial()Returns the value of the postDial parameter, or null if it
is not set.
return telephoneNumber.getPostDial();
|
public boolean | isGlobal()Returns true if this TelURL is global i.e. if the TelURI
has a global phone user.
return telephoneNumber.isGlobal();
|
public boolean | isSipURI()This method determines if this is a URI with a scheme of "sip"
or "sips".
return false;
|
public boolean | isTelURL()This method determines if this is a URI with a scheme of
"tel"
return true;
|
public void | setGlobal(boolean global)Sets phone user of this TelURL to be either global or local. The default
value is false, hence the TelURL is defaulted to local.
this.telephoneNumber.setGlobal(true);
|
public void | setIsdnSubAddress(java.lang.String isdnSubAddress)Sets ISDN subaddress of this TelURL. If a subaddress is present, it is
appended to the phone number after ";isub=".
this.telephoneNumber.setIsdnSubaddress(isdnSubAddress);
|
public void | setPhoneNumber(java.lang.String telephoneNumber)Set the telephone number.
this.telephoneNumber.setPhoneNumber(telephoneNumber);
|
public void | setPostDial(java.lang.String postDial)Sets post dial of this TelURL. The post-dial sequence describes what and
when the local entity should send to the phone line.
this.telephoneNumber.setPostDial(postDial);
|
public void | setTelephoneNumber(TelephoneNumber telephoneNumber)Sets the telephone number.
this.telephoneNumber = telephoneNumber;
|
public java.lang.String | toString()Return the string encoding.
return this.scheme + ":" + telephoneNumber.encode();
|