public class MaxForwardsHeaderImpl extends SipHeaderImpl implements MaxForwardsHeader
NAME| Constructor and Description |
|---|
MaxForwardsHeaderImpl(int value) |
| Modifier and Type | Method and Description |
|---|---|
MaxForwardsHeader |
clone() |
void |
decrement()
Decrement the value by one.
|
MaxForwardsHeader |
ensure()
If this method actually gets called it means that we are the As most things in this library are done lazily, such as framing headers, you can make sure
that a particular header has indeed been parsed to the more specific header type by calling
this method.
|
int |
getMaxForwards() |
Buffer |
getValue()
Get the value of the buffer
|
void |
setMaxForwards(int value) |
getBytes, getName, toString, transferValue, verifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreate, create, framepublic int getMaxForwards()
getMaxForwards in interface MaxForwardsHeaderpublic Buffer getValue()
SipHeaderImplgetValue in interface SipHeadergetValue in class SipHeaderImplpublic MaxForwardsHeader clone()
clone in interface MaxForwardsHeaderclone in interface SipHeaderclone in class SipHeaderImplpublic void setMaxForwards(int value)
setMaxForwards in interface MaxForwardsHeaderpublic void decrement()
MaxForwardsHeaderdecrement in interface MaxForwardsHeaderpublic MaxForwardsHeader ensure()
SipHeaderImplContactHeader but it is still in its "raw" form and therefore represented as a
SipHeader as opposed to an actual ContactHeader but by calling this method
you will force the library to actually fully frame it.ensure in interface SipHeaderensure in class SipHeaderImplCopyright © 2017. All Rights Reserved.