|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents Tel URLs, which are used for addressing. The Tel URL
starts with the scheme 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:
| Method Summary | |
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. if the TelURI
has a global phone user. |
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. |
| Methods inherited from interface javax.sip.address.URI |
clone, getScheme, isSipURI |
| Methods inherited from interface javax.sip.header.Parameters |
getParameter, getParameterNames, removeParameter, setParameter |
| Method Detail |
public 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.public void setGlobal(boolean global)
global - - the boolean value indicating if the TelURL has a global
phone user.
public void setPostDial(String postDial)
throws ParseException
postDial - - new value of the postDial parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the postDial value.public String getPostDial()
postDial parameter, or null if it
is not set.
postDial parameter
public void setPhoneNumber(String phoneNumber)
throws ParseException
phoneNumber - - new value of the phoneNumber parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the phoneNumber value.public String getPhoneNumber()
phoneNumber parameter. This method
will not return the "+" associated with telephone numbers.
phoneNumber parameter
public void setIsdnSubAddress(String isdnSubAddress)
throws ParseException
isdnSubAddress - - new value of the isdnSubAddress
parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the isdnSubAddress value.public String getIsdnSubAddress()
isdnSubAddress parameter, or null
if it is not set.
isdnSubAddress parameter
public void setPhoneContext(String phoneContext)
throws ParseException
phoneContext - - new value of the phoneContext
parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the phoneContext value.public String getPhoneContext()
phoneContext parameter, or null
if it is not set.
phoneContext parameterpublic String toString()
toString in interface URI
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||