public class ResponseEvent extends EventObject
This specification defines a single Response event object to handle all
Response messages. The Response event encapsulates the Response message
that can be retrieved from getResponse()
.
Therefore the event type of a Response event can be determined as follows:
eventType == ResponseEvent.getResponse().getStatusCode();
A Response event also encapsulates the client transaction upon which the Response is correlated, i.e. the client transaction of the Request message upon which this is a Response.
ResponseEvent contains the following elements:
source
Constructor and Description |
---|
ResponseEvent(Object source,
ClientTransaction clientTransaction,
Dialog dialog,
Response response)
Constructs a ResponseEvent encapsulating the Response that has been received
by the underlying SipProvider.
|
Modifier and Type | Method and Description |
---|---|
ClientTransaction |
getClientTransaction()
Gets the client transaction associated with this ResponseEvent
|
Dialog |
getDialog()
Gets the Dialog associated with the event or null if no dialog exists.
|
Response |
getResponse()
Gets the Response message encapsulated in this ResponseEvent.
|
getSource, toString
public ResponseEvent(Object source, ClientTransaction clientTransaction, Dialog dialog, Response response)
SipListener.processResponse(ResponseEvent)
method of the SipListener
for application processing.source
- - the source of ResponseEvent i.e. the SipProviderclientTransaction
- - client transaction upon which
this Response was sentresponse
- - the Response message received by the SipProviderpublic ClientTransaction getClientTransaction()
public Response getResponse()
public Dialog getDialog()
Copyright © 2016. All Rights Reserved.