|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jain.protocol.ip.sip.header.Header
|
+--jain.protocol.ip.sip.header.RequestHeader
|
+--jain.protocol.ip.sip.header.PriorityHeader
This class represents the Priority request-header. The PriorityHeader indicates the urgency of the RequestMessage as perceived by the client.
The priority value may be one of the following:
It is recommended that the value of PRIORITY_EMERGENCY only be used when life, limb or property are in imminent danger.
| Field Summary | |
static int |
PRIORITY_EMERGENCY
|
static int |
PRIORITY_NON_URGENT
|
static int |
PRIORITY_NORMAL
|
static int |
PRIORITY_URGENT
|
static java.lang.String |
token
Token of PriorityHeader |
| Fields inherited from class jain.protocol.ip.sip.header.Header |
ENTITY_HEADER,
GENERAL_HEADER,
REQUEST_HEADER,
RESPONSE_HEADER |
| Constructor Summary | |
PriorityHeader(int priority)
Creates a PriorityHeader based on given priority |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of PriorityHeader |
boolean |
equals(PriorityHeader priorityHeader)
Indicates whether some other PriorityHeader is "equal to" this one |
int |
getPriority()
Gets priority of PriorityHeader |
java.lang.String |
getValue()
Gets value of PriorityHeader |
boolean |
isEmergency()
Returns boolean value indicating if priority of PriorityHeader is PRIORITY_EMERGENCY |
boolean |
isNonUrgent()
Returns boolean value indicating if priority of PriorityHeader is PRIORITY_NON_URGENT |
boolean |
isNormal()
Returns boolean value indicating if priority of PriorityHeader is PRIORITY_NORMAL |
boolean |
isUrgent()
Returns boolean value indicating if priority of PriorityHeader is PRIORITY_URGENT |
void |
setEmergency()
Sets priority of PriorityHeader to PRIORITY_EMERGENCY |
void |
setNonUrgent()
Sets priority of PriorityHeader to PRIORITY_NON_URGENT |
void |
setNormal()
Sets priority of PriorityHeader to PRIORITY_NORMAL |
void |
setPriority(int priority)
Set priority of PriorityHeader |
void |
setUrgent()
Sets priority of PriorityHeader to PRIORITY_URGENT |
| Methods inherited from class jain.protocol.ip.sip.header.Header |
equals,
getHeaderType,
getToken,
setValue,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int PRIORITY_EMERGENCY
public static final int PRIORITY_URGENT
public static final int PRIORITY_NORMAL
public static final int PRIORITY_NON_URGENT
public static final java.lang.String token
| Constructor Detail |
public PriorityHeader(int priority)
throws java.lang.IllegalArgumentException
priority - priority| Method Detail |
public boolean isEmergency()
public boolean isUrgent()
public boolean isNormal()
public boolean isNonUrgent()
public int getPriority()
public void setEmergency()
public void setUrgent()
public void setNormal()
public void setNonUrgent()
public void setPriority(int priority)
throws java.lang.IllegalArgumentException
priority - prioritypublic java.lang.String getValue()
public java.lang.Object clone()
public boolean equals(PriorityHeader priorityHeader)
priorityHeader - the PriorityHeader with which to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems