org.zoolu.sip.transaction
Class AckTransactionServer
java.lang.Object
|
+--org.zoolu.sip.transaction.Transaction
|
+--org.zoolu.sip.transaction.AckTransactionServer
- All Implemented Interfaces:
- SipProviderListener, TimerListener
- public class AckTransactionServer
- extends Transaction
ACK server transaction should follow an INVITE server transaction within an INVITE Dialog in a SIP UAC.
The AckTransactionServer sends the final response message and retransmits it
several times until the method terminate() is called or the trasaction timeout fires.
|
Method Summary |
void |
onTimeout(Timer to)
Method derived from interface TimerListener.
|
protected void |
printLog(java.lang.String str,
int level)
Adds a new string to the default Log |
void |
respond()
Starts the AckTransactionServer. |
void |
terminate()
Method used to drop an active transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AckTransactionServer
public AckTransactionServer(SipProvider sip_provider,
Message resp,
AckTransactionServerListener listener)
- Creates a new AckTransactionServer.
The AckTransactionServer starts sending a the resp message.
It retransmits the resp several times if no ACK request is received.
AckTransactionServer
public AckTransactionServer(SipProvider sip_provider,
ConnectionIdentifier connection_id,
Message resp,
AckTransactionServerListener listener)
- Creates a new AckTransactionServer.
The AckTransactionServer starts sending the response message resp
through the connection conn_id.
respond
public void respond()
- Starts the AckTransactionServer.
onTimeout
public void onTimeout(Timer to)
- Method derived from interface TimerListener.
It's fired from an active Timer.
- Overrides:
onTimeout in class Transaction
terminate
public void terminate()
- Method used to drop an active transaction.
- Overrides:
terminate in class Transaction
printLog
protected void printLog(java.lang.String str,
int level)
- Adds a new string to the default Log
- Overrides:
printLog in class Transaction