public final class AddressImpl extends Object implements Address
Modifier | Constructor and Description |
---|---|
protected |
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()
Address
Address
or an empty buffer if it is
not set.getDisplayName
in interface Address
public URI getURI() throws SipParseException
Address
getURI
in interface Address
IOException
IndexOutOfBoundsException
SipParseException
public 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
- SipParseException
IOException
IndexOutOfBoundsException
public Buffer toBuffer()
Address
as a raw buffer.Copyright © 2013. All Rights Reserved.