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, uriString
CORE_PACKAGE, GRUU, LR, MADDR, METHOD, NET_PACKAGE, PARSER_PACKAGE, PHONE, TCP, TLS, TRANSPORT, TTL, UDP, USER
AND, 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, hashCode
debugDump, debugDump, match
dbgPrint, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
protected 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 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.public boolean isSipURI()
isSipURI
in interface URI
isSipURI
in class GenericURI
public void setGlobal(boolean global)
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()
public String encode()
GenericURI
encode
in class GenericURI
public StringBuilder encode(StringBuilder buffer)
GenericObject
encode
in class GenericURI
public Object clone()
clone
in interface URI
clone
in class GenericObject
public String getParameter(String parameterName)
Parameters
getParameter
in interface Parameters
parameterName
- name of parameter to retrievepublic 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 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
parameterParseException
- 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
parameterCopyright © 2015. All Rights Reserved.