|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--jain.protocol.ip.sip.message.Message
|
+--jain.protocol.ip.sip.message.RequestMessage
|
+--jain.protocol.ip.sip.message.InviteMessage
This class represent an INVITE request message. An InviteMessage indicates that the user or service is being invited to participate in a session. The message body contains a description of the session to which the callee is being invited. For two-party calls, the caller indicates the type of media it is able to receive and possibly the media it is willing to send as well as their parameters such as network destination. An OK ResponseMessage must indicate in its message body which media the callee wishes to receive and may indicate the media the callee is going to send. (Not all session description formats have the ability to indicate sending media).
A server may automatically respond to an invitation for a conference the user is already participating in, identified either by the CallIdHeader or a globally unique identifier within the session description, with an OK ResponseMessage.
If a user agent receives an InviteMessage for an existing call leg with a higher CSeq sequence number than any previous InviteMessage for the same CallIdHeader, it must check any version identifiers in the session description or, if there are no version identifiers, the content of the session description to see if it has changed. It must also inspect any other Headers for changes. If there is a change, the user agent must update any internal state or information generated as a result of that Header. If the session description has changed, the user agent server must adjust the session parameters accordingly, possibly after asking the user for confirmation. (Versioning of the session description can be used to accommodate the capabilities of new arrivals to a conference, add or delete media or change from a unicast to a multicast conference.)
InviteMessages must be supported by SIP proxy, redirect and user agent servers as well as clients.
CSeqHeader,
CallIdHeader, Serialized Form| Field Summary | |
static java.lang.String |
method
InviteMessage's method |
| Constructor Summary | |
InviteMessage(java.lang.Object source,
URI requestURI,
CallIdHeader callIdHeader,
CSeqHeader cSeqHeader,
FromHeader fromHeader,
ToHeader toHeader,
ViaHeader[] viaHeaders,
java.lang.Object body,
ContentTypeHeader contentTypeHeader)
Constructor of InviteMessage |
|
| Method Summary | |
PriorityHeader |
getPriorityHeader()
Gets PriorityHeader of InviteMessage. |
SubjectHeader |
getSubjectHeader()
Gets SubjectHeader of InviteMessage. |
boolean |
hasPriorityHeader()
Returns boolean value to indicate if InviteMessage has PriorityHeader. |
boolean |
hasSubjectHeader()
Returns boolean value to indicate if InviteMessage has SubjectHeader. |
void |
removePriorityHeader()
Removes PriorityHeader from InviteMessage's Header list. |
void |
removeSubjectHeaderr()
Removes SubjectHeader from InviteMessage's Header list. |
void |
setPriorityHeader(PriorityHeader priorityHeader)
Sets PriorityHeader of InviteMessage. |
void |
setSubjectHeader(SubjectHeader subjectHeader)
Sets SubjectHeader of InviteMessage. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String method
| Constructor Detail |
public InviteMessage(java.lang.Object source,
URI requestURI,
CallIdHeader callIdHeader,
CSeqHeader cSeqHeader,
FromHeader fromHeader,
ToHeader toHeader,
ViaHeader[] viaHeaders,
java.lang.Object body,
ContentTypeHeader contentTypeHeader)
throws java.lang.IllegalArgumentException
source - source of the InviteMessagerequestURI - Request URIcallIdHeader - CallIdHeadercSeqHeader - CSeqHeaderfromHeader - FromHeadertoHeader - ToHeaderviaHeaders - ViaHeadersbody - bodycontentTypeHeader - ContentTypeHeader| Method Detail |
public PriorityHeader getPriorityHeader()
throws HeaderNotSetException
public void setPriorityHeader(PriorityHeader priorityHeader)
throws java.lang.IllegalArgumentException
priorityHeader - PriorityHeader to setpublic boolean hasPriorityHeader()
public void removePriorityHeader()
public SubjectHeader getSubjectHeader()
throws HeaderNotSetException
public void setSubjectHeader(SubjectHeader subjectHeader)
throws java.lang.IllegalArgumentException
subjectHeader - SubjectHeader to setpublic boolean hasSubjectHeader()
public void removeSubjectHeaderr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright - 2000 Sun Microsystems