| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the given TelURL with this TelURL.
|
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, and 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.
|
String |
toString()
Returns the String representation of this TelURL.
|
clone, getParameter, getParameterNames, getScheme, isSipURI, removeParameter, setParameterboolean equals(Object o)
String getPhoneNumber()
boolean isGlobal()
void setPhoneNumber(String number)
number - the new global phone numberIllegalArgumentException - if the phone number was invalid according to validation rules specified in RFC3966void setPhoneNumber(String number, String phoneContext)
number - the new local phone numberphoneContext - the phone-context parameter of this TelURIIllegalArgumentException - if the phone number was invalid according to validation rules specified in RFC3966String toString()
String getPhoneContext()
Copyright © 2016. All Rights Reserved.