public interface Address
Modifier and Type | Interface and Description |
---|---|
static class |
Address.Builder |
Modifier and Type | Method and Description |
---|---|
static Address.Builder |
builder() |
Address.Builder |
copy()
An
Address is an immutable object so if you wish to change something
you have to create a copy of it. |
static Address |
frame(Buffer buffer)
Parses a SIP "name-addr" as defined by RFC3261 section 25.1:
|
static Address |
frame(String buffer) |
void |
getBytes(Buffer dst) |
Buffer |
getDisplayName()
Get the display name of this
Address or an empty buffer if it is
not set. |
URI |
getURI()
|
Buffer |
toBuffer()
Get the
Address as a raw buffer. |
static Address.Builder |
withHost(Buffer host) |
static Address.Builder |
withHost(String host) |
static Address.Builder |
withURI(URI uri) |
Buffer getDisplayName()
Address
or an empty buffer if it is
not set.URI getURI() throws SipParseException
URI
SipParseException
void getBytes(Buffer dst)
Address.Builder copy()
Address
is an immutable object so if you wish to change something
you have to create a copy of it.static Address frame(String buffer) throws SipParseException, IndexOutOfBoundsException, IOException
static Address frame(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
static Address.Builder builder()
static Address.Builder withHost(Buffer host)
static Address.Builder withHost(String host)
static Address.Builder withURI(URI uri)
Copyright © 2019. All Rights Reserved.