public interface ClientTransaction extends ClientTransaction, Transaction
ClientTransaction
interface.This version supports the per-transaction retransmission filter flag for INVITE transactions.
Modifier and Type | Method and Description |
---|---|
void |
associateServerTransaction(ServerTransaction st)
Equivalent to
DialogActivity.associateServerTransaction(javax.sip.ClientTransaction, javax.sip.ServerTransaction) ,
but this method can also be used when a dialog does not exist. |
ServerTransaction |
getAssociatedServerTransaction()
Retrieve the
ServerTransaction that is associated with this client transaction. |
PersistentOutboundConnection |
getPersistentOutboundConnection()
Get the object representing the underlying persistent outbound connection, if any.
|
createAck, createCancel, sendRequest
getApplicationData, getBranchId, getDialog, getRequest, getRetransmitTimer, getState, setApplicationData, setRetransmitTimer, terminate
getLocalEndpoint, getPeerCertificates, isRetransmissionFilterEnabled, setRetransmissionFilter
PersistentOutboundConnection getPersistentOutboundConnection()
void associateServerTransaction(ServerTransaction st)
DialogActivity.associateServerTransaction(javax.sip.ClientTransaction, javax.sip.ServerTransaction)
,
but this method can also be used when a dialog does not exist. Applications such as proxies and B2BUAs need to record an association between client and server transactions, so that the response from a client transaction can be forwarded upstream on the correct server transaction.
When the client transaction receives a response, it can easily retrieve the server transaction
using getAssociatedServerTransaction()
.
Applications could use Transaction.setApplicationData(Object)
for the same purpose, but this
method has been added to be consistent with the existing usage in the JSIP 1.2 RA Type.
st
- the ServerTransaction
to be associated with this client transaction.ServerTransaction getAssociatedServerTransaction()
ServerTransaction
that is associated with this client transaction.
Equivalent to DialogActivity.getAssociatedServerTransaction(javax.sip.ClientTransaction)
,
but this method can also be used when a dialog does not exist.ServerTransaction
associated with this client transaction, that was set by an
earlier call to associateServerTransaction()
or
DialogActivity.associateServerTransaction()
,
or null
if it has not been set.