org.restlet.ext.sip
Class Priority

java.lang.Object
  extended by org.restlet.ext.sip.Priority

public class Priority
extends Object

Describes level of SIP message importance. Used by the SIP "Priority" header.

Author:
Thierry Boileau

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

EMERGENCY

public static final Priority EMERGENCY
Highest level of priority.

See Also:
Priority header

NON_URGENT

public static final Priority NON_URGENT
Lowest level of priority.

See Also:
Priority header

NORMAL

public static final Priority NORMAL
Normal level of priority.

See Also:
Priority header

URGENT

public static final Priority URGENT
Urgent level of priority.

See Also:
Priority header
Constructor Detail

Priority

public Priority(String value)
Constructor.

Parameters:
value - The priority value.
Method Detail

register

public static Priority register(String name)
Register an option tag that can later be retrieved using valueOf(String). If the option tag already exists, the existing tag is returned, otherwise a new instance is created.

Parameters:
name - The name.
Returns:
The registered option tag.

valueOf

public static Priority valueOf(String value)
Returns the priority associated to a value. If an existing constant exists then it is returned, otherwise a new instance is created.

Parameters:
value - The value.
Returns:
The associated priority.

getValue

public String getValue()
Returns the priority value.

Returns:
The priority value.

setValue

public void setValue(String value)
Sets the priority value.

Parameters:
value - The priority value.


Copyright © 2005-2013 Restlet.