|
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 | ||||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.address.NetObject
gov.nist.javax.sip.address.GenericURI
gov.nist.javax.sip.address.TelURLImpl
Implementation of the TelURL interface.
| Field Summary |
| Fields inherited from class gov.nist.javax.sip.address.GenericURI |
ISUB, PHONE_CONTEXT_TAG, POSTDIAL, PROVIDER_TAG, SIP, SIPS, TEL |
| Constructor Summary | |
TelURLImpl()
Creates a new instance of TelURLImpl |
|
| Method Summary | |
Object |
clone()
Deep copy clone operation. |
String |
encode()
Encode the URI. |
String |
getIsdnSubAddress()
Returns the value of the isdnSubAddress parameter, or null
if it is not set. |
String |
getParameter(String parameterName)
Returns the value of the named parameter, or null if it is not set. |
Iterator |
getParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader. |
String |
getPhoneContext()
Returns the value of the phoneContext parameter, or null
if it is not set. |
String |
getPhoneNumber()
Get the telephone number. |
String |
getPostDial()
Returns the value of the postDial parameter, or null if it
is not set. |
String |
getScheme()
Returns the value of the "scheme" of this URI, for example "sip", "sips" or "tel". |
boolean |
isGlobal()
Returns true if this TelURL is global i.e. if the TelURI
has a global phone user. |
boolean |
isSipURI()
This method determines if this is a URI with a scheme of "sip" or "sips". |
void |
removeParameter(String name)
Removes the specified parameter from Parameters of this ParametersHeader. |
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 |
setParameter(String name,
String value)
Sets the value of the specified parameter. |
void |
setPhoneContext(String phoneContext)
Sets the phone context of this TelURL. |
void |
setPhoneNumber(String telephoneNumber)
Set the telephone number. |
void |
setPostDial(String postDial)
Sets post dial of this TelURL. |
void |
setTelephoneNumber(TelephoneNumber telephoneNumber)
Set the telephone number. |
String |
toString()
Return the string encoding. |
| Methods inherited from class gov.nist.javax.sip.address.GenericURI |
equals, hashCode |
| Methods inherited from class gov.nist.javax.sip.address.NetObject |
debugDump, debugDump, match |
| Methods inherited from class gov.nist.core.GenericObject |
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TelURLImpl()
| Method Detail |
public void setTelephoneNumber(TelephoneNumber telephoneNumber)
telephoneNumber - -- telephone number to set.public String getIsdnSubAddress()
isdnSubAddress parameter, or null
if it is not set.
getIsdnSubAddress in interface TelURLisdnSubAddress parameterpublic String getPostDial()
postDial parameter, or null if it
is not set.
getPostDial in interface TelURLpostDial parameterpublic String getScheme()
getScheme in interface URIgetScheme in class GenericURIpublic boolean isGlobal()
true if this TelURL is global i.e. if the TelURI
has a global phone user.
isGlobal in interface TelURLtrue if this TelURL represents a global phone user,
and false otherwise.public boolean isSipURI()
isSipURI in interface URIisSipURI in class GenericURIpublic void setGlobal(boolean global)
setGlobal in interface TelURLglobal - - the boolean value indicating if the TelURL has a global
phone user.public void setIsdnSubAddress(String isdnSubAddress)
setIsdnSubAddress in interface TelURLisdnSubAddress - - new value of the isdnSubAddress
parameterpublic void setPostDial(String postDial)
setPostDial in interface TelURLpostDial - - new value of the postDial parameterpublic void setPhoneNumber(String telephoneNumber)
setPhoneNumber in interface TelURLtelephoneNumber - long phone number to set.public String getPhoneNumber()
getPhoneNumber in interface TelURLpublic String toString()
toString in interface TelURLtoString in class GenericURIpublic String encode()
GenericURI
encode in class GenericURIpublic Object clone()
clone in interface URIpublic String getParameter(String parameterName)
Parameters
getParameter in interface ParametersparameterName - name of parameter to retrieve
public void setParameter(String name,
String value)
Parameters
setParameter in interface Parametersname - - a String specifying the parameter namevalue - - a String specifying the parameter valuepublic Iterator getParameterNames()
Parameters
getParameterNames in interface Parameterspublic void removeParameter(String name)
Parameters
removeParameter in interface Parametersname - - a String specifying the parameter name
public void setPhoneContext(String phoneContext)
throws ParseException
TelURL
setPhoneContext in interface TelURLphoneContext - - new value of the phoneContext
parameter
ParseException - which signals that an error has been reached
unexpectedly while parsing the phoneContext value.public String getPhoneContext()
TelURLphoneContext parameter, or null
if it is not set.
getPhoneContext in interface TelURLphoneContext parameter
|
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 | ||||||||||