|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.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 | |
String |
encode()
Encode the URI. |
String |
getIsdnSubAddress()
Returns the value of the isdnSubAddress 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 |
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 |
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 |
clone |
Methods inherited from class gov.nist.javax.sip.address.NetObject |
debugDump, debugDump, equals, match, merge, replace, replace, replace, replace |
Methods inherited from class gov.nist.core.GenericObject |
getClassFromName, getMatcher, isMySubclass, setMatcher |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sip.address.URI |
clone |
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 TelURL
isdnSubAddress
parameterpublic String getPostDial()
postDial
parameter, or null if it
is not set.
getPostDial
in interface TelURL
postDial
parameterpublic String getScheme()
getScheme
in interface URI
getScheme
in class GenericURI
public boolean isGlobal()
true
if this TelURL is global i.e. if the TelURI
has a global phone user.
isGlobal
in interface TelURL
true
if this TelURL represents a global phone user,
and false
otherwise.public boolean isSipURI()
isSipURI
in interface URI
isSipURI
in class GenericURI
public void setGlobal(boolean global)
setGlobal
in interface TelURL
global
- - the boolean value indicating if the TelURL has a global
phone user.public void setIsdnSubAddress(String isdnSubAddress)
setIsdnSubAddress
in interface TelURL
isdnSubAddress
- - new value of the isdnSubAddress
parameterpublic void setPostDial(String postDial)
setPostDial
in interface TelURL
postDial
- - new value of the postDial
parameterpublic void setPhoneNumber(String telephoneNumber)
setPhoneNumber
in interface TelURL
telephoneNumber
- - new value of the phoneNumber
parameterpublic String getPhoneNumber()
getPhoneNumber
in interface TelURL
public String toString()
toString
in interface TelURL
toString
in class GenericURI
public String encode()
GenericURI
encode
in class GenericURI
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |