|
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
public class 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. |
StringBuffer |
encode(StringBuffer buffer)
Put the encoded version of this object in the given StringBuffer. |
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<String> |
getParameterNames()
Returns an Iterator over the names (Strings) of all parameters present in this ParametersHeader. |
gov.nist.core.NameValueList |
getParameters()
|
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 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
- long phone number to set.public String getPhoneNumber()
getPhoneNumber
in interface TelURL
public String toString()
toString
in interface TelURL
toString
in interface URI
toString
in class GenericURI
public String encode()
GenericURI
encode
in class GenericURI
public StringBuffer encode(StringBuffer buffer)
gov.nist.core.GenericObject
encode
in class GenericURI
public Object clone()
clone
in interface URI
clone
in class gov.nist.core.GenericObject
public String getParameter(String parameterName)
Parameters
getParameter
in interface Parameters
parameterName
- name of parameter to retrieve
public void setParameter(String name, String value)
Parameters
setParameter
in interface Parameters
name
- - a String specifying the parameter namevalue
- - a String specifying the parameter valuepublic Iterator<String> getParameterNames()
Parameters
getParameterNames
in interface Parameters
public gov.nist.core.NameValueList getParameters()
public void removeParameter(String name)
Parameters
removeParameter
in interface Parameters
name
- - a String specifying the parameter namepublic void setPhoneContext(String phoneContext) throws ParseException
TelURL
setPhoneContext
in interface TelURL
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()
TelURL
phoneContext
parameter, or null
if it is not set.
getPhoneContext
in interface TelURL
phoneContext
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 |