|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.siprop.v2.stack.sip.tu.function.impl.MaxForwardsHandlerImpl
public class MaxForwardsHandlerImpl
This class handles Max-Forwards header. In UAC case, append Max-Forwards header if needed. In UAS case, decreament value of Max-Forwards.
Constructor Summary | |
---|---|
MaxForwardsHandlerImpl(StackManager stackManager)
Constructor. |
|
MaxForwardsHandlerImpl(StackManager stackManager,
int maxForwards)
Constructor. |
Method Summary | |
---|---|
void |
addFunction(TuFunction function)
Add TuFunction. |
Context |
doProcess(Context context,
TransactionEntry trnsct)
Execute TuFunction. |
void |
removeFunction(TuFunction function)
Remove TuFunction. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaxForwardsHandlerImpl(StackManager stackManager, int maxForwards)
stackManager
- instance of StackManagermaxForwards
- value of Max-Forwardspublic MaxForwardsHandlerImpl(StackManager stackManager)
stackManager
- Method Detail |
---|
public Context doProcess(Context context, TransactionEntry trnsct)
TuFunction
doProcess
in interface TuFunction
context
- the message will be processedtrnsct
- type of transaction that related the message
public void addFunction(TuFunction function) throws SIPropException
TuFunction
addFunction
in interface TuFunction
SIPropException
public void removeFunction(TuFunction function) throws SIPropException
TuFunction
removeFunction
in interface TuFunction
SIPropException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |