public interface ContactHeader extends AddressParametersHeader
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContactHeader.Builder |
| Modifier and Type | Field and Description |
|---|---|
static Buffer |
COMPACT_NAME |
static Buffer |
NAME |
CANNOT_CAST_HEADER_OF_TYPE, UNABLE_TO_PARSE_OUT_THE_HEADER_NAME_DUE_TO_UNDERLYING_IO_EXCEPTION| Modifier and Type | Method and Description |
|---|---|
ContactHeader |
clone() |
ContactHeader.Builder |
copy()
Everything within the pkts.io SIP module are immutable so if you actually want
to change anything you have to create a copy, which will return a specific Builder
for that header.
|
static ContactHeader |
frame(Buffer buffer)
Frame the value as a
ContactHeader. |
default boolean |
isContactHeader()
Check whether this is a contact header.
|
default ContactHeader |
toContactHeader() |
static ContactHeader.Builder |
with() |
static ContactHeader.Builder |
withAddress(Address address) |
static ContactHeader.Builder |
withHost(Buffer host) |
static ContactHeader.Builder |
withHost(String host) |
static ContactHeader.Builder |
withSipURI(SipURI uri) |
isAddressParametersHeader, toAddressParametersHeader, withgetAddressgetParameter, getParameter, setParameter, setParametercreate, ensure, frame, getBufferSize, getBytes, getName, getNameStr, getValue, is, is, isCallIdHeader, isContentLengthHeader, isContentTypeHeader, isCSeqHeader, isExpiresHeader, isFromHeader, isMaxForwardsHeader, isRecordRouteHeader, isRouteHeader, isSubjectHeader, isSystemHeader, isToHeader, isViaHeader, toCallIdHeader, toContentLengthHeader, toContentTypeHeader, toCSeqHeader, toExpiresHeader, toFromHeader, toMaxForwardsHeader, toRecordRouteHeader, toRouteHeader, toToHeader, toViaHeader, verifyContactHeader clone()
static ContactHeader.Builder with()
static ContactHeader.Builder withAddress(Address address) throws SipParseException
SipParseExceptionstatic ContactHeader.Builder withHost(Buffer host) throws SipParseException
SipParseExceptionstatic ContactHeader.Builder withHost(String host) throws SipParseException
SipParseExceptionstatic ContactHeader.Builder withSipURI(SipURI uri) throws SipParseException
SipParseExceptionstatic ContactHeader frame(Buffer buffer) throws SipParseException
ContactHeader.frame in interface AddressParametersHeaderframe in interface SipHeadervalue - SipParseException - in case anything goes wrong while parsing.ContactHeader.Builder copy()
SipHeadercopy in interface AddressParametersHeadercopy in interface SipHeaderdefault boolean isContactHeader()
SipHeaderSipHeader.ensure().SipHeader.toContactHeader()
because the way this method works is that if the header hasn't been fully framed
then the default method, which is on the SipHeader itself, will check the method name
if it "spells" "Contact". However, if the header you have really has been parsed into a
ContactHeader then this method will be overridden to return true right away
but since you cannot know that you must force it to be framed (if you actually want to
work with the ContactHeader interface i.e.), which is done by calling
SipHeader.ensure().isContactHeader in interface SipHeaderdefault ContactHeader toContactHeader()
toContactHeader in interface SipHeaderCopyright © 2020. All Rights Reserved.