public interface MaxForwardsHeader extends SipHeader
Modifier and Type | Method and Description |
---|---|
MaxForwardsHeader |
clone() |
static MaxForwardsHeader |
create()
Create a new
MaxForwardsHeader with a value of 70. |
static MaxForwardsHeader |
create(int max) |
void |
decrement()
Decrement the value by one.
|
static MaxForwardsHeader |
frame(Buffer buffer)
Create a new
SipHeader based on the buffer. |
int |
getMaxForwards() |
void |
setMaxForwards(int value) |
static final Buffer NAME
int getMaxForwards()
void setMaxForwards(int value)
void decrement()
static MaxForwardsHeader frame(Buffer buffer) throws SipParseException
SipHeader
SipHeader
based on the buffer. Each SipHeader
will override this
factory method to parse the header into a more specialized header.
Note, the header returned really is a SipHeader
and is NOT e.g. a ToHeader
.
If you really need to parse it as a ToHeader
you should use theframe
in interface SipHeader
SipHeader
.SipParseException
- in case the header is not a correct formatted header.MaxForwardsHeader clone()
static MaxForwardsHeader create(int max)
static MaxForwardsHeader create()
MaxForwardsHeader
with a value of 70.Copyright © 2014. All Rights Reserved.