TelURI.Builder| Constructor and Description |
|---|
TelURIImpl(boolean isGlobal,
Buffer phoneNumber,
Buffer headers,
Buffer original) |
| Modifier and Type | Method and Description |
|---|---|
URI |
clone() |
TelURI.Builder |
copy()
All URIs are immutable so if you wish to change it you need to
obtain a copy of it which will return a new builder that allows
you to change and build a new URI.
|
boolean |
equals(Object obj) |
Buffer |
getParameter(Buffer name)
Get the value of the named parameter.
|
Buffer |
getParameter(String name)
Same as
TelURI.getParameter(Buffer). |
Buffer |
getPhoneNumber()
Returns the phone number, without the '+' in case of global number
|
int |
hashCode() |
boolean |
isGlobal()
Specifies whether the telephone number is global or not
|
Buffer |
toBuffer()
|
String |
toString() |
getBytes, getRawURI, getScheme, isSipURIfinalize, getClass, notify, notifyAll, wait, wait, waitframe, isTelURI, toTelURI, withPhoneNumber, withPhoneNumberpublic TelURI.Builder copy()
URIpublic boolean isGlobal()
TelURIpublic Buffer getPhoneNumber()
TelURIgetPhoneNumber in interface TelURIpublic Buffer getParameter(Buffer name) throws SipParseException, IllegalArgumentException
TelURIBuffer, which can be checked with Buffer.isEmpty() or
Buffer.capacity(), which will return zero. As with any empty
Buffer, if you do Buffer.toString() you will be getting
an empty String back, which would be yet another way to check for
a flag parameter.getParameter in interface TelURIname - the name of the parameter we are looking for.SipParseException - in case anything goes wrong while extracting the parameter.IllegalArgumentException - in case the name is null.public Buffer getParameter(String name) throws SipParseException, IllegalArgumentException
TelURITelURI.getParameter(Buffer).getParameter in interface TelURISipParseException - in case anything goes wrong while extracting the parameter.IllegalArgumentException - in case the name is null.Copyright © 2020. All Rights Reserved.