org.mobicents.slee.resource.sip11.wrappers
Class ClientDialogWrapper
java.lang.Object
org.mobicents.slee.resource.sip11.wrappers.Wrapper
org.mobicents.slee.resource.sip11.wrappers.DialogWrapper
org.mobicents.slee.resource.sip11.wrappers.ClientDialogWrapper
- All Implemented Interfaces:
- java.io.Serializable, javax.sip.Dialog, DialogActivity
public class ClientDialogWrapper
- extends DialogWrapper
- See Also:
- Serialized Form
| Methods inherited from class org.mobicents.slee.resource.sip11.wrappers.DialogWrapper |
addOngoingTransaction, clear, createResponse, ensureCorrectDialogLocalTag, getAssociatedServerTransaction, getClientTransaction, getLocalTag, getRouteSet, getWrappedDialog, isAckTransaction, isDialog, removeOngoingTransaction, setLocalTag |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.sip.Dialog |
getApplicationData, setApplicationData |
ClientDialogWrapper
public ClientDialogWrapper(DialogWithoutIdActivityHandle handle,
SipResourceAdaptor ra)
- Parameters:
handle - wrappedDialog - ra -
setCustomCallId
public void setCustomCallId(javax.sip.header.CallIdHeader customCallId)
setFromAddress
public void setFromAddress(javax.sip.address.Address fromAddress)
setToAddress
public void setToAddress(javax.sip.address.Address toAddress)
isForkingPossible
public boolean isForkingPossible()
- Returns:
stopForking
public boolean stopForking(boolean iAmTheMasterDialog)
- Returns:
isForkingWinner
public boolean isForkingWinner()
getEventFiringAddress
public javax.slee.Address getEventFiringAddress()
- Description copied from class:
Wrapper
- Retrieves the slee
Address where events on this resource are fired.
- Overrides:
getEventFiringAddress in class DialogWrapper
- Returns:
createAck
public javax.sip.message.Request createAck(long arg0)
throws javax.sip.InvalidArgumentException,
javax.sip.SipException
- Specified by:
createAck in interface javax.sip.Dialog- Overrides:
createAck in class DialogWrapper
- 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- Overrides:
createPrack in class DialogWrapper
- 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- Overrides:
createReliableProvisionalResponse in class DialogWrapper
- Throws:
javax.sip.InvalidArgumentException
javax.sip.SipException
delete
public void delete()
- Specified by:
delete in interface javax.sip.Dialog- Overrides:
delete in class DialogWrapper
getCallId
public javax.sip.header.CallIdHeader getCallId()
- Specified by:
getCallId in interface javax.sip.Dialog- Overrides:
getCallId in class DialogWrapper
getDialogId
public java.lang.String getDialogId()
- Specified by:
getDialogId in interface javax.sip.Dialog- Overrides:
getDialogId in class DialogWrapper
getFirstTransaction
public javax.sip.Transaction getFirstTransaction()
- Specified by:
getFirstTransaction in interface javax.sip.Dialog- Overrides:
getFirstTransaction in class DialogWrapper
getLocalParty
public javax.sip.address.Address getLocalParty()
- Specified by:
getLocalParty in interface javax.sip.Dialog- Overrides:
getLocalParty in class DialogWrapper
getRemoteParty
public javax.sip.address.Address getRemoteParty()
- Specified by:
getRemoteParty in interface javax.sip.Dialog- Overrides:
getRemoteParty in class DialogWrapper
getRemoteTarget
public javax.sip.address.Address getRemoteTarget()
- Specified by:
getRemoteTarget in interface javax.sip.Dialog- Overrides:
getRemoteTarget in class DialogWrapper
getLocalSeqNumber
public long getLocalSeqNumber()
- Specified by:
getLocalSeqNumber in interface javax.sip.Dialog- Overrides:
getLocalSeqNumber in class DialogWrapper
getLocalSequenceNumber
public int getLocalSequenceNumber()
- Specified by:
getLocalSequenceNumber in interface javax.sip.Dialog- Overrides:
getLocalSequenceNumber in class DialogWrapper
getRemoteSeqNumber
public long getRemoteSeqNumber()
- Specified by:
getRemoteSeqNumber in interface javax.sip.Dialog- Overrides:
getRemoteSeqNumber in class DialogWrapper
getRemoteSequenceNumber
public int getRemoteSequenceNumber()
- Specified by:
getRemoteSequenceNumber in interface javax.sip.Dialog- Overrides:
getRemoteSequenceNumber in class DialogWrapper
getRemoteTag
public java.lang.String getRemoteTag()
- Specified by:
getRemoteTag in interface javax.sip.Dialog- Overrides:
getRemoteTag in class DialogWrapper
getState
public javax.sip.DialogState getState()
- Specified by:
getState in interface javax.sip.Dialog- Overrides:
getState in class DialogWrapper
incrementLocalSequenceNumber
public void incrementLocalSequenceNumber()
- Specified by:
incrementLocalSequenceNumber in interface javax.sip.Dialog- Overrides:
incrementLocalSequenceNumber in class DialogWrapper
isSecure
public boolean isSecure()
- Specified by:
isSecure in interface javax.sip.Dialog- Overrides:
isSecure in class DialogWrapper
isServer
public boolean isServer()
- Specified by:
isServer in interface javax.sip.Dialog- Overrides:
isServer in class DialogWrapper
sendAck
public void sendAck(javax.sip.message.Request arg0)
throws javax.sip.SipException
- Specified by:
sendAck in interface javax.sip.Dialog- Overrides:
sendAck in class DialogWrapper
- 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- Overrides:
sendReliableProvisionalResponse in class DialogWrapper
- Throws:
javax.sip.SipException
terminateOnBye
public void terminateOnBye(boolean arg0)
throws javax.sip.SipException
- Specified by:
terminateOnBye in interface javax.sip.Dialog- Overrides:
terminateOnBye in class DialogWrapper
- Throws:
javax.sip.SipException
toString
public java.lang.String toString()
- Overrides:
toString in class DialogWrapper
sendCancel
public javax.sip.ClientTransaction sendCancel()
throws javax.sip.SipException
- Specified by:
sendCancel in interface DialogActivity- Overrides:
sendCancel in class DialogWrapper
- Throws:
javax.sip.SipException
associateServerTransaction
public void associateServerTransaction(javax.sip.ClientTransaction ct,
javax.sip.ServerTransaction st)
- Specified by:
associateServerTransaction in interface DialogActivity- Overrides:
associateServerTransaction in class DialogWrapper
createRequest
public javax.sip.message.Request createRequest(javax.sip.message.Request origRequest)
throws javax.sip.SipException
- Specified by:
createRequest in interface DialogActivity- Overrides:
createRequest in class DialogWrapper
- Throws:
javax.sip.SipException
createRequest
public javax.sip.message.Request createRequest(java.lang.String methodName)
throws javax.sip.SipException
- Specified by:
createRequest in interface javax.sip.Dialog- Overrides:
createRequest in class DialogWrapper
- Throws:
javax.sip.SipException
sendRequest
public javax.sip.ClientTransaction sendRequest(javax.sip.message.Request request)
throws javax.sip.SipException,
javax.sip.TransactionUnavailableException
- Specified by:
sendRequest in interface DialogActivity- Overrides:
sendRequest in class DialogWrapper
- Throws:
javax.sip.SipException
javax.sip.TransactionUnavailableException
sendRequest
public void sendRequest(javax.sip.ClientTransaction ct)
throws javax.sip.TransactionDoesNotExistException,
javax.sip.SipException
- Specified by:
sendRequest in interface javax.sip.Dialog- Overrides:
sendRequest in class DialogWrapper
- Throws:
javax.sip.TransactionDoesNotExistException
javax.sip.SipException
isClientDialog
public boolean isClientDialog()
- Description copied from class:
DialogWrapper
- Indicates if the dialog is UAC.
- Overrides:
isClientDialog in class DialogWrapper
- Returns:
setWrappedDialog
public void setWrappedDialog(javax.sip.Dialog wrappedDialog)
- Overrides:
setWrappedDialog in class DialogWrapper
- Parameters:
wrappedDialog - the wrappedDialog to set
Copyright © 2012. All Rights Reserved.