Address.AddressBuilder| Constructor and Description |
|---|
AddressImpl(Buffer displayName,
URI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
getBytes(Buffer dst) |
Buffer |
getDisplayName()
Get the display name of this
Address or an empty buffer if it is
not set. |
URI |
getURI()
|
static Address |
parse(Buffer buffer)
Parses a SIP "name-addr" as defined by RFC3261 section 25.1:
|
Buffer |
toBuffer()
TODO: make much more efficient once we have a composite buffer
Get the
Address as a raw buffer. |
String |
toString() |
public Buffer getDisplayName()
AddressAddress or an empty buffer if it is
not set.getDisplayName in interface Addresspublic URI getURI() throws SipParseException
AddressgetURI in interface AddressIOExceptionIndexOutOfBoundsExceptionSipParseExceptionpublic static final Address parse(Buffer buffer) throws SipParseException, IndexOutOfBoundsException, IOException
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT addr-spec = SIP-URI / SIPS-URI / absoluteURI display-name = *(token LWS)/ quoted-string
buffer - SipParseExceptionIOExceptionIndexOutOfBoundsExceptionpublic Buffer toBuffer()
Address as a raw buffer.Copyright © 2017. All Rights Reserved.