public class OptionTags extends Object
Modifier and Type | Field and Description |
---|---|
static OptionTags |
PATH |
static OptionTags |
REL100 |
static OptionTags |
TIMER |
Constructor and Description |
---|
OptionTags(String tagName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRequired(Message message)
Is this option tag required ("Require: <tag>")?
|
boolean |
isSupported(Message message)
Is support for this option tag indicated ("Supported: <tag>" or "Require: <tag>")?
|
void |
setRequired(Message message,
HeaderFactory hf)
Adds the "Require: <tag>" header to a message, if not already present
|
void |
setSupported(Message message,
HeaderFactory hf)
Adds the "Supported: <tag>" header to a message, if not already present
|
public static final OptionTags TIMER
public static final OptionTags PATH
public static final OptionTags REL100
public OptionTags(String tagName)
public boolean isSupported(Message message)
public boolean isRequired(Message message)
public void setSupported(Message message, HeaderFactory hf)
message
- the message to updatehf
- a JSIP HeaderFactory
to create the headerpublic void setRequired(Message message, HeaderFactory hf)
message
- the message to updatehf
- a JSIP HeaderFactory
to create the header