public interface URI
Modifier and Type | Interface and Description |
---|---|
static class |
URI.Builder<T extends URI> |
Modifier and Type | Method and Description |
---|---|
URI |
clone() |
URI.Builder<? extends URI> |
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.
|
static URI |
frame(Buffer buffer) |
void |
getBytes(Buffer dst)
Write the bytes of this URI into the destination buffer
|
Buffer |
getScheme()
Returns the scheme of this URI, which really can be anything (see RFC3261
section 25.1 and the definition of absoluteURI) but most commonly will be
"sip", "sips" or "tel".
|
boolean |
isSipURI()
Check whether this
URI is a "sip" or "sips" URI. |
default SipURI |
toSipURI() |
Buffer getScheme()
boolean isSipURI()
URI
is a "sip" or "sips" URI.URI
is a SIP URI, false otherwise.void getBytes(Buffer dst)
dst
- default SipURI toSipURI()
static URI frame(Buffer buffer) throws SipParseException, IndexOutOfBoundsException, IOException
buffer
- IOException
IndexOutOfBoundsException
SipParseException
URI clone()
URI.Builder<? extends URI> copy()
Copyright © 2015. All Rights Reserved.