public class ContentLengthHeaderImpl extends SipHeaderImpl implements ContentLengthHeader
ContentLengthHeader.BuilderCOMPACT_NAME, NAMECANNOT_CAST_HEADER_OF_TYPE, UNABLE_TO_PARSE_OUT_THE_HEADER_NAME_DUE_TO_UNDERLYING_IO_EXCEPTION| Constructor and Description |
|---|
ContentLengthHeaderImpl(int length) |
| Modifier and Type | Method and Description |
|---|---|
ContentLengthHeader |
clone() |
ContentLengthHeader.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.
|
ContentLengthHeader |
ensure()
If this method actually gets called it means that we are the
SipHeaderImpl itself
and that we need to frame it further. |
int |
getContentLength() |
getBytes, getName, getValue, toString, transferValue, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, frame, isContentLengthHeader, toContentLengthHeadercreate, frame, getBufferSize, getBytes, getName, getNameStr, getValue, is, is, isAddressParametersHeader, isCallIdHeader, isContactHeader, isContentTypeHeader, isCSeqHeader, isExpiresHeader, isFromHeader, isMaxForwardsHeader, isRecordRouteHeader, isRouteHeader, isSubjectHeader, isSystemHeader, isToHeader, isViaHeader, toAddressParametersHeader, toCallIdHeader, toContactHeader, toContentTypeHeader, toCSeqHeader, toExpiresHeader, toFromHeader, toMaxForwardsHeader, toRecordRouteHeader, toRouteHeader, toToHeader, toViaHeader, verifypublic int getContentLength()
getContentLength in interface ContentLengthHeaderpublic ContentLengthHeader clone()
clone in interface ContentLengthHeaderclone in interface SipHeaderclone in class SipHeaderImplpublic ContentLengthHeader ensure()
SipHeaderImplSipHeaderImpl itself
and that we need to frame it further. Subclasses MUST override this method and simply return
'this'.ensure in interface SipHeaderensure in class SipHeaderImplpublic ContentLengthHeader.Builder copy()
SipHeadercopy in interface ContentLengthHeadercopy in interface SipHeadercopy in class SipHeaderImplCopyright © 2020. All Rights Reserved.