public class TelURLImpl extends GenericURI implements TelURL
| Modifier and Type | Field and Description |
|---|---|
protected TelephoneNumber |
telephoneNumber |
ISUB, PHONE_CONTEXT_TAG, POSTDIAL, PROVIDER_TAG, scheme, SIP, SIPS, TEL, uriStringCORE_PACKAGE, GRUU, LR, MADDR, METHOD, NET_PACKAGE, PARSER_PACKAGE, PHONE, TCP, TLS, TRANSPORT, TTL, UDP, USERAND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation| Constructor and Description |
|---|
TelURLImpl()
Creates a new instance of TelURLImpl
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Deep copy clone operation.
|
String |
encode()
Encode the URI.
|
StringBuilder |
encode(StringBuilder buffer)
Put the encoded version of this object in the given StringBuilder.
|
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.
|
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. |
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.
|
equals, hashCodedbgPrint, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintprotected TelephoneNumber telephoneNumber
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.public boolean isSipURI()
isSipURI in interface URIisSipURI in class GenericURIpublic void setGlobal(boolean global)
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()
public String encode()
GenericURIencode in class GenericURIpublic StringBuilder encode(StringBuilder buffer)
GenericObjectencode in class GenericURIpublic Object clone()
clone in interface URIclone in class GenericObjectpublic String getParameter(String parameterName)
ParametersgetParameter in interface ParametersparameterName - name of parameter to retrievepublic void setParameter(String name, String value)
ParameterssetParameter in interface Parametersname - - a String specifying the parameter namevalue - - a String specifying the parameter valuepublic Iterator<String> getParameterNames()
ParametersgetParameterNames in interface Parameterspublic NameValueList getParameters()
public void removeParameter(String name)
ParametersremoveParameter in interface Parametersname - - a String specifying the parameter namepublic void setPhoneContext(String phoneContext) throws ParseException
TelURLsetPhoneContext in interface TelURLphoneContext - - new value of the phoneContext
parameterParseException - 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 parameterCopyright © 2014. All Rights Reserved.