org.echarts.test.sip
Class HeaderAddHelper
java.lang.Object
org.echarts.test.sip.HeaderAddHelper
- All Implemented Interfaces:
- MessageModifier
public class HeaderAddHelper
- extends java.lang.Object
- implements MessageModifier
This class can be used to add user-defined headers to ALL messages
that are sent out by an agent to which this modifier is added. For
each message that is sent out, this modifier gets invoked and this
modifier adds the specified headers to the message. To specify
additional headers only during call establishment, use the call
method with header map
argument.
Constructor Summary |
HeaderAddHelper(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerMap)
Specify the list of user defined headers to be added to each
message before sending out. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeaderAddHelper
public HeaderAddHelper(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headerMap)
throws java.lang.Exception
- Specify the list of user defined headers to be added to each
message before sending out.
- Throws:
java.lang.Exception
modify
public void modify(Message message)
throws java.lang.Exception
- Specified by:
modify
in interface MessageModifier
- Throws:
java.lang.Exception