public interface TelURL extends URI, Parameters
tel:
. This tells the
local entity that what follows is a URL that should be parsed as described
in RFC2806. After that,
the URL contains the phone number of the remote entity.
Within a SIP Message, TelURLs can be used to indicate the source and intended destination of a Request, redirection addresses and the current destination of a Request. All these Headers may contain TelURLs.
The TelURL interface extends the generic URI interface and provides additional convenience methods for the following components of a TelURL address, above the generic URI class:
Modifier and Type | Method and Description |
---|---|
String |
getIsdnSubAddress()
Returns the value of the
isdnSubAddress parameter, or null
if it is not set. |
String |
getPhoneContext()
Returns the value of the
phoneContext parameter, or null
if it is not set. |
String |
getPhoneNumber()
Returns the value of the
phoneNumber parameter. |
String |
getPostDial()
Returns the value of the
postDial parameter, or null if it
is not set. |
boolean |
isGlobal()
Returns
true if this TelURL is global i.e. |
void |
setGlobal(boolean global)
Sets phone user of this TelURL to be either global or local.
|
void |
setIsdnSubAddress(String isdnSubAddress)
Sets ISDN subaddress of this TelURL.
|
void |
setPhoneContext(String phoneContext)
Sets the phone context of this TelURL.
|
void |
setPhoneNumber(String phoneNumber)
Sets phone number of this TelURL.
|
void |
setPostDial(String postDial)
Sets post dial of this TelURL.
|
String |
toString()
This method returns the URI as a string.
|
getParameter, getParameterNames, removeParameter, setParameter
boolean isGlobal()
true
if this TelURL is global i.e. if the TelURI
has a global phone user.true
if this TelURL represents a global phone user,
and false
otherwise.void setGlobal(boolean global)
global
- - the boolean value indicating if the TelURL has a global
phone user.void setPostDial(String postDial) throws ParseException
postDial
- - new value of the postDial
parameterParseException
- which signals that an error has been reached
unexpectedly while parsing the postDial value.String getPostDial()
postDial
parameter, or null if it
is not set.postDial
parametervoid setPhoneNumber(String phoneNumber) throws ParseException
phoneNumber
- - new value of the phoneNumber
parameterParseException
- which signals that an error has been reached
unexpectedly while parsing the phoneNumber value.String getPhoneNumber()
phoneNumber
parameter. This method
will not return the "+" associated with telephone numbers.phoneNumber
parametervoid setIsdnSubAddress(String isdnSubAddress) throws ParseException
isdnSubAddress
- - new value of the isdnSubAddress
parameterParseException
- which signals that an error has been reached
unexpectedly while parsing the isdnSubAddress value.String getIsdnSubAddress()
isdnSubAddress
parameter, or null
if it is not set.isdnSubAddress
parametervoid setPhoneContext(String phoneContext) throws ParseException
phoneContext
- - new value of the phoneContext
parameterParseException
- which signals that an error has been reached
unexpectedly while parsing the phoneContext value.String getPhoneContext()
phoneContext
parameter, or null
if it is not set.phoneContext
parameterCopyright © 2016. All Rights Reserved.