org.mobicents.slee.resource.sip.wrappers
Class ServerTransactionWrapper

java.lang.Object
  extended by org.mobicents.slee.resource.sip.wrappers.ServerTransactionWrapper
All Implemented Interfaces:
java.io.Serializable, javax.sip.ServerTransaction, javax.sip.Transaction, SecretWrapperInterface

public class ServerTransactionWrapper
extends java.lang.Object
implements javax.sip.ServerTransaction, SecretWrapperInterface

Wraps SIP ServerTransaction.

Author:
M. Ranganathan, B. Baranowski
See Also:
Serialized Form

Constructor Summary
ServerTransactionWrapper(javax.sip.ServerTransaction ST, DialogWrapper dialogWrapper, SipResourceAdaptor sipResourceAdaptor)
           
 
Method Summary
 void enableRetransmissionAlerts()
           
 SipActivityHandle getActivityHandle()
           
 java.lang.Object getApplicationData()
           
 java.lang.String getBranchId()
           
 javax.sip.Dialog getDialog()
           
 javax.sip.Transaction getRealTransaction()
           
 javax.sip.message.Request getRequest()
           
 int getRetransmitTimer()
           
 javax.sip.TransactionState getState()
           
 void processCancelOnActivityEnd()
          Removes cancel timer, etc
 void processCancelOnEventProcessingFailed()
          Removes cancel timer, etc
 void processCancelOnEventProcessingSucess()
          Removes cancel timer, etc
 void sendResponse(javax.sip.message.Response arg0)
           
 void setApplicationData(java.lang.Object arg0)
           
 void setCancel(RequestEventWrapper cancel)
          Set local cancel request.
static void setCancelWait(long timeout)
           
 void setDialogWrapper(DialogWrapper dialogWrapper)
           
 void setRetransmitTimer(int arg0)
           
 void terminate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerTransactionWrapper

public ServerTransactionWrapper(javax.sip.ServerTransaction ST,
                                DialogWrapper dialogWrapper,
                                SipResourceAdaptor sipResourceAdaptor)
Method Detail

setCancelWait

public static void setCancelWait(long timeout)

getRealTransaction

public javax.sip.Transaction getRealTransaction()
Specified by:
getRealTransaction in interface SecretWrapperInterface

setDialogWrapper

public void setDialogWrapper(DialogWrapper dialogWrapper)
Specified by:
setDialogWrapper in interface SecretWrapperInterface

sendResponse

public void sendResponse(javax.sip.message.Response arg0)
                  throws javax.sip.SipException,
                         javax.sip.InvalidArgumentException
Specified by:
sendResponse in interface javax.sip.ServerTransaction
Throws:
javax.sip.SipException
javax.sip.InvalidArgumentException

enableRetransmissionAlerts

public void enableRetransmissionAlerts()
                                throws javax.sip.SipException
Specified by:
enableRetransmissionAlerts in interface javax.sip.ServerTransaction
Throws:
javax.sip.SipException

getDialog

public javax.sip.Dialog getDialog()
Specified by:
getDialog in interface javax.sip.Transaction

getState

public javax.sip.TransactionState getState()
Specified by:
getState in interface javax.sip.Transaction

getRetransmitTimer

public int getRetransmitTimer()
                       throws java.lang.UnsupportedOperationException
Specified by:
getRetransmitTimer in interface javax.sip.Transaction
Throws:
java.lang.UnsupportedOperationException

setRetransmitTimer

public void setRetransmitTimer(int arg0)
                        throws java.lang.UnsupportedOperationException
Specified by:
setRetransmitTimer in interface javax.sip.Transaction
Throws:
java.lang.UnsupportedOperationException

getBranchId

public java.lang.String getBranchId()
Specified by:
getBranchId in interface javax.sip.Transaction

getRequest

public javax.sip.message.Request getRequest()
Specified by:
getRequest in interface javax.sip.Transaction

setApplicationData

public void setApplicationData(java.lang.Object arg0)
Specified by:
setApplicationData in interface javax.sip.Transaction

getApplicationData

public java.lang.Object getApplicationData()
Specified by:
getApplicationData in interface javax.sip.Transaction

terminate

public void terminate()
               throws javax.sip.ObjectInUseException
Specified by:
terminate in interface javax.sip.Transaction
Throws:
javax.sip.ObjectInUseException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setCancel

public void setCancel(RequestEventWrapper cancel)
Set local cancel request. Also activats timer, after it expires cancel will be fired into slee.

Parameters:
cancel -

processCancelOnEventProcessingFailed

public void processCancelOnEventProcessingFailed()
Removes cancel timer, etc


processCancelOnEventProcessingSucess

public void processCancelOnEventProcessingSucess()
Removes cancel timer, etc


processCancelOnActivityEnd

public void processCancelOnActivityEnd()
Removes cancel timer, etc


getActivityHandle

public SipActivityHandle getActivityHandle()
Specified by:
getActivityHandle in interface SecretWrapperInterface


Copyright © 2008. All Rights Reserved.