public class RequestEvent extends EventObject
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:
source
Constructor and Description |
---|
RequestEvent(Object source,
ServerTransaction serverTransaction,
Dialog dialog,
Request request)
Constructs a RequestEvent encapsulating the Request that has been received
by the underlying SipProvider.
|
Modifier and Type | Method and Description |
---|---|
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
|
getSource, toString
public RequestEvent(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 SipProviderpublic ServerTransaction getServerTransaction()
public Request getRequest()
public Dialog getDialog()
Copyright © 2018. All Rights Reserved.