public class SipUserHostInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
static SipUserHostInfo |
frame(Buffer buffer)
Frames a SIP URI user/host info portion, specified in RFC 3261 as:
|
Buffer |
getHost()
Accesses the host portion of the SIP URI
To be valid, the URI must contain the host portion--this method should always return a value.
|
Buffer |
getPort()
Accesses the port portion of the SIP URI
|
Buffer |
getUser()
Accesses the user portion of the SIP URI
|
public static SipUserHostInfo frame(Buffer buffer) throws SipParseException, IOException
SIP-URI = "sip:" [ userinfo ] hostport
uri-parameters [ headers ]
SIPS-URI = "sips:" [ userinfo ] hostport
uri-parameters [ headers ]
userinfo = ( user / telephone-subscriber ) [ ":" password ] "@"
user = 1*( unreserved / escaped / user-unreserved )
user-unreserved = "&" / "=" / "+" / "$" / "," / ";" / "?" / "/"
password = *( unreserved / escaped / "&" / "=" / "+" / "$" / "," )
hostport = host [ ":" port ]
The URI is consumed up to the start uri-parameters or headers section, whichever
is encountered first.buffer - a buffer, which should begin at the start of the user/host info sectionSipParseExceptionIOExceptionpublic Buffer getUser()
public Buffer getHost()
public Buffer getPort()
Copyright © 2016. All Rights Reserved.