|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.sip.RequestEvent
public class RequestEvent
This class represents an Request event that is passed from a SipProvider to its SipListener. This specification handles the passing of request messages to the application use the event model. An application (SipListener) will register with the SIP protocol stack (SipProvider) and listen for Request events from the SipProvider.
This specification defines a single Request event object to handle all Request
messages. The Request event encapsulates the Request message that can be
retrieved from getRequest()
. Therefore the event type
of a Request event can be determined as follows:
eventType == RequestEvent.getRequest().getMethod();
A Request event also encapsulates the server transaction which handles the Request.
RequestEvent contains the following elements:
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
RequestEvent(java.lang.Object source,
ServerTransaction serverTransaction,
Dialog dialog,
Request request)
Constructs a RequestEvent encapsulating the Request that has been received by the underlying SipProvider. |
Method Summary | |
---|---|
Dialog |
getDialog()
Gets the dialog with which this Event is associated. |
Request |
getRequest()
Gets the Request message associated with this RequestEvent. |
ServerTransaction |
getServerTransaction()
Gets the server transaction associated with this RequestEvent |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RequestEvent(java.lang.Object source, ServerTransaction serverTransaction, Dialog dialog, Request request)
SipListener.processRequest(RequestEvent)
method of the SipListener
for application processing.
source
- - the source of ResponseEvent i.e. the SipProviderserverTransaction
- - server transaction upon which
this Request was sentrequest
- - the Request message received by the SipProviderMethod Detail |
---|
public ServerTransaction getServerTransaction()
public Request getRequest()
public Dialog getDialog()
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |