public interface TelURL extends URI
Modifier and Type | Method and Description |
---|---|
String |
getPhoneContext()
Returns the phone context of this TelURL for local numbers, or
null if the phone number is global. |
String |
getPhoneNumber()
Returns the phone number of this TelURL.
|
boolean |
isGlobal()
Returns
true if this TelURL is global, false otherwise |
void |
setPhoneNumber(String number)
Sets the (global) phone number of this TelURL.
|
void |
setPhoneNumber(String number,
String phoneContext)
Sets the (local) phone number of this TelURL.
|
clone, getParameter, getParameterNames, getScheme, isSipURI, removeParameter, setParameter, toString
String getPhoneNumber()
String getPhoneContext()
null
if the phone number is global.null
if the phone number is global.void setPhoneNumber(String number)
setPhoneNumber("+1-201-555-0123")
number
- the new global phone numberIllegalArgumentException
- if not a valid phone numbervoid setPhoneNumber(String number, String phoneContext)
setPhoneNumber("7042","example.com")
number
- the new local phone numberphoneContext
- the phone-context parameter for this TelURLIllegalArgumentException
- if not a valid phone number or phone-contextboolean isGlobal()
true
if this TelURL is global, false
otherwisetrue
if this TelURL is in global form