The Max-Forwards value is an integer in the range 0-255 indicating the remaining number of times this request message is allowed to be forwarded. This count is decremented by each server that forwards the request. The recommended initial value is 70.
This header field should be inserted by elements that can not otherwise guarantee loop detection. For example, a B2BUA should insert a Max-Forwards header field.
TooManyHopsExceptionif implementation cannot decrement max-fowards i.e. max-forwards has reached zero
maxForwards- the number of max-forwards
javax.sip.InvalidArgumentExceptionif the maxForwards argument is less than 0 or greater than 255.
objthe object to compare this MaxForwardsHeader with.
objis an instance of this class representing the same MaxForwardsHeader as this,