public class SipHeaderImpl extends Object implements SipHeader
SipHeader.Builder<H extends SipHeader>CANNOT_CAST_HEADER_OF_TYPE, UNABLE_TO_PARSE_OUT_THE_HEADER_NAME_DUE_TO_UNDERLYING_IO_EXCEPTION| Constructor and Description |
|---|
SipHeaderImpl(Buffer name,
Buffer value) |
| Modifier and Type | Method and Description |
|---|---|
SipHeader |
clone() |
SipHeader.Builder<? extends SipHeader> |
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.
|
SipHeader |
ensure()
If this method actually gets called it means that we are the
SipHeaderImpl itself
and that we need to frame it further. |
void |
getBytes(Buffer dst) |
Buffer |
getName()
Subclasses may override this one and are in fact encourage to do so
Get the name of the header
|
Buffer |
getValue()
Get the value of the buffer
|
String |
toString() |
protected void |
transferValue(Buffer dst)
Transfer the bytes of the value into the destination.
|
void |
verify() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, frame, frame, getBufferSize, getNameStr, is, is, isAddressParametersHeader, isCallIdHeader, isContactHeader, isContentLengthHeader, isContentTypeHeader, isCSeqHeader, isExpiresHeader, isFromHeader, isMaxForwardsHeader, isRecordRouteHeader, isRouteHeader, isSubjectHeader, isSystemHeader, isToHeader, isViaHeader, toAddressParametersHeader, toCallIdHeader, toContactHeader, toContentLengthHeader, toContentTypeHeader, toCSeqHeader, toExpiresHeader, toFromHeader, toMaxForwardsHeader, toRecordRouteHeader, toRouteHeader, toToHeader, toViaHeaderpublic SipHeader.Builder<? extends SipHeader> copy()
SipHeaderpublic Buffer getName()
public Buffer getValue()
public void verify()
throws SipParseException
verify in interface SipHeaderSipParseExceptionpublic SipHeader ensure()
SipHeaderImpl itself
and that we need to frame it further. Subclasses MUST override this method and simply return
'this'.protected void transferValue(Buffer dst)
dst - Copyright © 2016. All Rights Reserved.