|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.sip.Priority
public class Priority
Describes level of SIP message importance. Used by the SIP "Priority" header.
Field Summary | |
---|---|
static Priority |
EMERGENCY
Highest level of priority. |
static Priority |
NON_URGENT
Lowest level of priority. |
static Priority |
NORMAL
Normal level of priority. |
static Priority |
URGENT
Urgent level of priority. |
Constructor Summary | |
---|---|
Priority(String value)
Constructor. |
Method Summary | |
---|---|
String |
getValue()
Returns the priority value. |
static Priority |
register(String name)
Register an option tag that can later be retrieved using valueOf(String) . |
void |
setValue(String value)
Sets the priority value. |
static Priority |
valueOf(String value)
Returns the priority associated to a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Priority EMERGENCY
public static final Priority NON_URGENT
public static final Priority NORMAL
public static final Priority URGENT
Constructor Detail |
---|
public Priority(String value)
value
- The priority value.Method Detail |
---|
public static Priority register(String name)
valueOf(String)
. If the option tag already exists, the existing
tag is returned, otherwise a new instance is created.
name
- The name.
public static Priority valueOf(String value)
value
- The value.
public String getValue()
public void setValue(String value)
value
- The priority value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |