org.mobicents.slee.resource.sip11.wrappers
Class DialogWrapper
java.lang.Object
org.mobicents.slee.resource.sip11.wrappers.DialogWrapper
- All Implemented Interfaces:
- java.io.Serializable, javax.sip.Dialog, net.java.slee.resource.sip.DialogActivity, WrapperSuperInterface
public class DialogWrapper
- extends java.lang.Object
- implements net.java.slee.resource.sip.DialogActivity, WrapperSuperInterface
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
wrappedDialog
protected javax.sip.Dialog wrappedDialog
sipActivityHandle
protected SipActivityHandle sipActivityHandle
initiatingTransctionId
protected java.lang.String initiatingTransctionId
ra
protected SipResourceAdaptor ra
ongoingClientTransactions
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.sip.ClientTransaction> ongoingClientTransactions
ongoingServerTransactions
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,javax.sip.ServerTransaction> ongoingServerTransactions
provider
protected SleeSipProviderImpl provider
logger
protected static final org.apache.log4j.Logger logger
DialogWrapper
public DialogWrapper(javax.sip.Dialog wrappedDialog,
java.lang.String initTxID,
SleeSipProviderImpl provider,
SipResourceAdaptor ra)
cleanup
public void cleanup()
- Specified by:
cleanup in interface WrapperSuperInterface
associateServerTransaction
public void associateServerTransaction(javax.sip.ClientTransaction ct,
javax.sip.ServerTransaction st)
- Specified by:
associateServerTransaction in interface net.java.slee.resource.sip.DialogActivity
createRequest
public javax.sip.message.Request createRequest(javax.sip.message.Request origRequest)
throws javax.sip.SipException
- Specified by:
createRequest in interface net.java.slee.resource.sip.DialogActivity
- Throws:
javax.sip.SipException
createResponse
public javax.sip.message.Response createResponse(javax.sip.ServerTransaction origServerTransaction,
javax.sip.message.Response receivedResponse)
throws javax.sip.SipException
- Specified by:
createResponse in interface net.java.slee.resource.sip.DialogActivity
- Throws:
javax.sip.SipException
getAssociatedServerTransaction
public javax.sip.ServerTransaction getAssociatedServerTransaction(javax.sip.ClientTransaction ct)
- Specified by:
getAssociatedServerTransaction in interface net.java.slee.resource.sip.DialogActivity
getClientTransaction
public javax.sip.ClientTransaction getClientTransaction(java.lang.String id)
- Specified by:
getClientTransaction in interface net.java.slee.resource.sip.DialogActivity
getInitiatingTransactionId
public java.lang.String getInitiatingTransactionId()
- Specified by:
getInitiatingTransactionId in interface net.java.slee.resource.sip.DialogActivity
getServerTransaction
public javax.sip.ServerTransaction getServerTransaction(java.lang.String id)
- Specified by:
getServerTransaction in interface net.java.slee.resource.sip.DialogActivity
sendRequest
public javax.sip.ClientTransaction sendRequest(javax.sip.message.Request request)
throws javax.sip.SipException,
javax.sip.TransactionUnavailableException
- Specified by:
sendRequest in interface net.java.slee.resource.sip.DialogActivity
- Throws:
javax.sip.SipException
javax.sip.TransactionUnavailableException
createAck
public javax.sip.message.Request createAck(long arg0)
throws javax.sip.InvalidArgumentException,
javax.sip.SipException
- Specified by:
createAck in interface javax.sip.Dialog
- Throws:
javax.sip.InvalidArgumentException
javax.sip.SipException
createPrack
public javax.sip.message.Request createPrack(javax.sip.message.Response arg0)
throws javax.sip.DialogDoesNotExistException,
javax.sip.SipException
- Specified by:
createPrack in interface javax.sip.Dialog
- Throws:
javax.sip.DialogDoesNotExistException
javax.sip.SipException
createReliableProvisionalResponse
public javax.sip.message.Response createReliableProvisionalResponse(int arg0)
throws javax.sip.InvalidArgumentException,
javax.sip.SipException
- Specified by:
createReliableProvisionalResponse in interface javax.sip.Dialog
- Throws:
javax.sip.InvalidArgumentException
javax.sip.SipException
createRequest
public javax.sip.message.Request createRequest(java.lang.String arg0)
throws javax.sip.SipException
- Specified by:
createRequest in interface javax.sip.Dialog
- Throws:
javax.sip.SipException
delete
public void delete()
- Specified by:
delete in interface javax.sip.Dialog
getApplicationData
public java.lang.Object getApplicationData()
- Specified by:
getApplicationData in interface javax.sip.Dialog
getCallId
public javax.sip.header.CallIdHeader getCallId()
- Specified by:
getCallId in interface javax.sip.Dialog
getDialogId
public java.lang.String getDialogId()
- Specified by:
getDialogId in interface javax.sip.Dialog
getFirstTransaction
public javax.sip.Transaction getFirstTransaction()
- Specified by:
getFirstTransaction in interface javax.sip.Dialog
getLocalParty
public javax.sip.address.Address getLocalParty()
- Specified by:
getLocalParty in interface javax.sip.Dialog
getLocalSeqNumber
public long getLocalSeqNumber()
- Specified by:
getLocalSeqNumber in interface javax.sip.Dialog
getLocalSequenceNumber
public int getLocalSequenceNumber()
- Specified by:
getLocalSequenceNumber in interface javax.sip.Dialog
getLocalTag
public java.lang.String getLocalTag()
- Specified by:
getLocalTag in interface javax.sip.Dialog
getRemoteParty
public javax.sip.address.Address getRemoteParty()
- Specified by:
getRemoteParty in interface javax.sip.Dialog
getRemoteSeqNumber
public long getRemoteSeqNumber()
- Specified by:
getRemoteSeqNumber in interface javax.sip.Dialog
getRemoteSequenceNumber
public int getRemoteSequenceNumber()
- Specified by:
getRemoteSequenceNumber in interface javax.sip.Dialog
getRemoteTag
public java.lang.String getRemoteTag()
- Specified by:
getRemoteTag in interface javax.sip.Dialog
getRemoteTarget
public javax.sip.address.Address getRemoteTarget()
- Specified by:
getRemoteTarget in interface javax.sip.Dialog
getRouteSet
public java.util.Iterator getRouteSet()
- Specified by:
getRouteSet in interface javax.sip.Dialog
getState
public javax.sip.DialogState getState()
- Specified by:
getState in interface javax.sip.Dialog
incrementLocalSequenceNumber
public void incrementLocalSequenceNumber()
- Specified by:
incrementLocalSequenceNumber in interface javax.sip.Dialog
isSecure
public boolean isSecure()
- Specified by:
isSecure in interface javax.sip.Dialog
isServer
public boolean isServer()
- Specified by:
isServer in interface javax.sip.Dialog
sendAck
public void sendAck(javax.sip.message.Request arg0)
throws javax.sip.SipException
- Specified by:
sendAck in interface javax.sip.Dialog
- Throws:
javax.sip.SipException
sendReliableProvisionalResponse
public void sendReliableProvisionalResponse(javax.sip.message.Response arg0)
throws javax.sip.SipException
- Specified by:
sendReliableProvisionalResponse in interface javax.sip.Dialog
- Throws:
javax.sip.SipException
sendRequest
public void sendRequest(javax.sip.ClientTransaction arg0)
throws javax.sip.TransactionDoesNotExistException,
javax.sip.SipException
- Specified by:
sendRequest in interface javax.sip.Dialog
- Throws:
javax.sip.TransactionDoesNotExistException
javax.sip.SipException
setApplicationData
public void setApplicationData(java.lang.Object arg0)
- Specified by:
setApplicationData in interface javax.sip.Dialog
terminateOnBye
public void terminateOnBye(boolean arg0)
throws javax.sip.SipException
- Specified by:
terminateOnBye in interface javax.sip.Dialog
- Throws:
javax.sip.SipException
getActivityHandle
public SipActivityHandle getActivityHandle()
- Specified by:
getActivityHandle in interface WrapperSuperInterface
getWrappedObject
public java.lang.Object getWrappedObject()
hasOngoingServerTransaction
public boolean hasOngoingServerTransaction(java.lang.String branchID)
hasOngoingClientTransaction
public boolean hasOngoingClientTransaction(java.lang.String branchID)
addOngoingTransaction
public void addOngoingTransaction(ServerTransactionWrapper stw)
addOngoingTransaction
public void addOngoingTransaction(ClientTransactionWrapper ctw)
removeOngoingTransaction
public void removeOngoingTransaction(ClientTransactionWrapper ctw)
removeOngoingTransaction
public void removeOngoingTransaction(ServerTransactionWrapper stw)
removeOngoingTransaction
public void removeOngoingTransaction(SuperTransactionWrapper stw)
clearOngoingTransaction
public void clearOngoingTransaction()
clearAssociations
public void clearAssociations()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2008. All Rights Reserved.