|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Transactions are a fundamental component of SIP. A transaction is a request sent by a client transaction to a server transaction, along with all responses to that request sent from the server transaction back to the client transactions. User agents contain a transaction layer, as do stateful proxies. Stateless proxies do not contain a transaction layer. This specification provides the capabilities to allow either the SipProvider or SipListener to handle transactional functionality.
This interface represents a generic transaction interface defining the methods common between client and server transactions.
TransactionState| Method Summary | |
java.lang.String |
getBranchId()
Returns a unique branch identifer that identifies this transaction. |
Dialog |
getDialog()
Gets the dialog object of this transaction object. |
Request |
getRequest()
Returns the request that created this transaction. |
int |
getRetransmitTimer()
Returns the current value of the retransmit timer in milliseconds used to retransmit messages over unreliable transports for this transaction. |
TransactionState |
getState()
Returns the current state of the transaction. |
void |
setRetransmitTimer(int retransmitTimer)
Sets the value of the retransmit timer to the newly supplied timer value. |
| Method Detail |
public Dialog getDialog()
An implementation must always associate a dialog with a transaction which may result in the creation of a 'dummy' dialog so that the application may always query the dialog from the Transaction. However if a dialog is not yet initialized, the Dialog.getState() must return null to indicate that the dialog has been created but is not yet mapped by the stack to any specific state.
Dialogpublic TransactionState getState()
public int getRetransmitTimer()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - if this method is not supported
by the underlying implementation.
public void setRetransmitTimer(int retransmitTimer)
throws java.lang.UnsupportedOperationException
retransmitTimer - - the new integer value of the retransmit timer
in milliseconds.
java.lang.UnsupportedOperationException - if this method is not supported
by the underlying implementation.public java.lang.String getBranchId()
public Request getRequest()
|
JAIN SIP API v1.1 - 23rd June 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||