|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TelURL
Represents tel URLs as defined by RFC 3966. Tel URLs represent telephone numbers. SIP servlet containers may be able to route requests based on tel URLs but are not required to. See Also:RFC 3966
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface javax.servlet.sip.URI |
|---|
clone, getParameter, getParameterNames, getScheme, isSipURI, removeParameter, setParameter |
| Method Detail |
|---|
boolean equals(Object o)
equals in interface URIequals in class ObjectString getPhoneNumber()
boolean isGlobal()
void setPhoneNumber(String number)
number - the new global phone number
IllegalArgumentException - if the phone number was invalid according to validation rules specified in RFC3966
void setPhoneNumber(String number,
String phoneContext)
number - the new local phone numberphoneContext - the phone-context parameter of this TelURI
IllegalArgumentException - if the phone number was invalid according to validation rules specified in RFC3966String toString()
toString in interface URItoString in class ObjectString getPhoneContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||