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

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

public class ServerTransactionWrapper
extends TransactionWrapper
implements javax.sip.ServerTransaction

A wrapper for ServerTransaction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.sip11.wrappers.Wrapper
activityHandle, ending, ra
 
Constructor Summary
ServerTransactionWrapper(ACKDummyTransaction wrappedTransaction, SipResourceAdaptor ra)
           
ServerTransactionWrapper(gov.nist.javax.sip.stack.SIPServerTransaction wrappedTransaction, SipResourceAdaptor ra)
           
 
Method Summary
 void clear()
           
 void enableRetransmissionAlerts()
           
 javax.slee.Address getEventFiringAddress()
          Retrieves the slee Address where events on this resource are fired.
 javax.sip.ServerTransaction getWrappedServerTransaction()
           
 javax.sip.Transaction getWrappedTransaction()
          Retrieves the wrapped sip transaction.
 boolean isAckTransaction()
          Indicates if the wrapper is an ack dummy transaction.
 boolean isClientTransaction()
          Indicates if it is a client transaction, avoiding the check of class types
 void sendResponse(javax.sip.message.Response arg0)
           
 void setWrappedServerTransaction(javax.sip.ServerTransaction wrappedTransaction)
          For future use on sip transaction fail over.
 void terminated()
          callback invoked when the underlying tx was terminated
 java.lang.String toString()
           
 
Methods inherited from class org.mobicents.slee.resource.sip11.wrappers.TransactionWrapper
getBranchId, getDialog, getDialogWrapper, getRequest, getRetransmitTimer, getState, isActivity, isDialog, setActivity, setRetransmitTimer, terminate
 
Methods inherited from class org.mobicents.slee.resource.sip11.wrappers.Wrapper
ending, getActivityHandle, getApplicationData, isEnding, setApplicationData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sip.Transaction
getApplicationData, getBranchId, getDialog, getRequest, getRetransmitTimer, getState, setApplicationData, setRetransmitTimer, terminate
 

Constructor Detail

ServerTransactionWrapper

public ServerTransactionWrapper(ACKDummyTransaction wrappedTransaction,
                                SipResourceAdaptor ra)
Parameters:
wrappedTransaction -
ra -

ServerTransactionWrapper

public ServerTransactionWrapper(gov.nist.javax.sip.stack.SIPServerTransaction wrappedTransaction,
                                SipResourceAdaptor ra)
Parameters:
wrappedTransaction -
ra -
Method Detail

getWrappedTransaction

public javax.sip.Transaction getWrappedTransaction()
Description copied from class: TransactionWrapper
Retrieves the wrapped sip transaction.

Specified by:
getWrappedTransaction in class TransactionWrapper
Returns:

getWrappedServerTransaction

public javax.sip.ServerTransaction getWrappedServerTransaction()
Returns:

setWrappedServerTransaction

public void setWrappedServerTransaction(javax.sip.ServerTransaction wrappedTransaction)
For future use on sip transaction fail over.

Parameters:
wrappedTransaction -

isAckTransaction

public boolean isAckTransaction()
Description copied from class: Wrapper
Indicates if the wrapper is an ack dummy transaction.

Specified by:
isAckTransaction in class Wrapper
Returns:

isClientTransaction

public boolean isClientTransaction()
Description copied from class: TransactionWrapper
Indicates if it is a client transaction, avoiding the check of class types

Specified by:
isClientTransaction in class TransactionWrapper
Returns:

getEventFiringAddress

public javax.slee.Address getEventFiringAddress()
Description copied from class: Wrapper
Retrieves the slee Address where events on this resource are fired.

Specified by:
getEventFiringAddress in class Wrapper
Returns:

enableRetransmissionAlerts

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

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

toString

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

terminated

public void terminated()
Description copied from class: TransactionWrapper
callback invoked when the underlying tx was terminated

Specified by:
terminated in class TransactionWrapper

clear

public void clear()
Overrides:
clear in class Wrapper


Copyright © 2012. All Rights Reserved.