|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.sip11.wrappers.Wrapper
org.mobicents.slee.resource.sip11.wrappers.DialogWrapper
public class DialogWrapper
Abstract dialog wrapper code.
| Field Summary | |
|---|---|
protected javax.slee.Address |
eventFiringAddress
|
protected SipActivityHandle |
lastCancelableTransactionId
|
protected java.util.concurrent.ConcurrentHashMap<SipActivityHandle,ClientTransactionWrapper> |
ongoingClientTransactions
|
protected javax.sip.Dialog |
wrappedDialog
the wrapped dialog |
| Fields inherited from class org.mobicents.slee.resource.sip11.wrappers.Wrapper |
|---|
activityHandle, ending, ra |
| Constructor Summary | |
|---|---|
DialogWrapper(SipActivityHandle sipActivityHandle,
SipResourceAdaptor ra)
|
|
| Method Summary | |
|---|---|
boolean |
addOngoingTransaction(ClientTransactionWrapper ctw)
|
void |
associateServerTransaction(javax.sip.ClientTransaction ct,
javax.sip.ServerTransaction st)
|
void |
clear()
|
javax.sip.message.Request |
createAck(long arg0)
|
javax.sip.message.Request |
createPrack(javax.sip.message.Response arg0)
|
javax.sip.message.Response |
createReliableProvisionalResponse(int arg0)
|
javax.sip.message.Request |
createRequest(javax.sip.message.Request origRequest)
|
javax.sip.message.Request |
createRequest(java.lang.String methodName)
|
javax.sip.message.Response |
createResponse(javax.sip.ServerTransaction origServerTransaction,
javax.sip.message.Response receivedResponse)
|
void |
delete()
|
protected void |
ensureCorrectDialogLocalTag(javax.sip.message.Request request)
|
javax.sip.ServerTransaction |
getAssociatedServerTransaction(javax.sip.ClientTransaction ct)
|
javax.sip.header.CallIdHeader |
getCallId()
|
javax.sip.ClientTransaction |
getClientTransaction(SipActivityHandle transaction)
|
java.lang.String |
getDialogId()
|
javax.slee.Address |
getEventFiringAddress()
Retrieves the slee Address where events on this resource are fired. |
javax.sip.Transaction |
getFirstTransaction()
Deprecated. |
javax.sip.address.Address |
getLocalParty()
|
long |
getLocalSeqNumber()
|
int |
getLocalSequenceNumber()
Deprecated. |
java.lang.String |
getLocalTag()
|
javax.sip.address.Address |
getRemoteParty()
|
long |
getRemoteSeqNumber()
|
int |
getRemoteSequenceNumber()
Deprecated. |
java.lang.String |
getRemoteTag()
|
javax.sip.address.Address |
getRemoteTarget()
|
java.util.Iterator<javax.sip.header.RouteHeader> |
getRouteSet()
|
javax.sip.DialogState |
getState()
|
javax.sip.Dialog |
getWrappedDialog()
|
void |
incrementLocalSequenceNumber()
|
boolean |
isAckTransaction()
Indicates if the wrapper is an ack dummy transaction. |
boolean |
isClientDialog()
Indicates if the dialog is UAC. |
boolean |
isDialog()
Indicates if the wrapper is a Dialog |
boolean |
isSecure()
|
boolean |
isServer()
|
void |
removeOngoingTransaction(ClientTransactionWrapper ctw)
|
void |
sendAck(javax.sip.message.Request arg0)
|
javax.sip.ClientTransaction |
sendCancel()
|
void |
sendReliableProvisionalResponse(javax.sip.message.Response arg0)
|
void |
sendRequest(javax.sip.ClientTransaction ct)
|
javax.sip.ClientTransaction |
sendRequest(javax.sip.message.Request request)
|
void |
setLocalTag(java.lang.String localTag)
|
void |
setWrappedDialog(javax.sip.Dialog wrappedDialog)
|
void |
terminateOnBye(boolean arg0)
|
java.lang.String |
toString()
|
| 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.Dialog |
|---|
getApplicationData, setApplicationData |
| Field Detail |
|---|
protected java.util.concurrent.ConcurrentHashMap<SipActivityHandle,ClientTransactionWrapper> ongoingClientTransactions
protected javax.sip.Dialog wrappedDialog
protected javax.slee.Address eventFiringAddress
protected SipActivityHandle lastCancelableTransactionId
| Constructor Detail |
|---|
public DialogWrapper(SipActivityHandle sipActivityHandle,
SipResourceAdaptor ra)
| Method Detail |
|---|
public void setLocalTag(java.lang.String localTag)
public javax.slee.Address getEventFiringAddress()
WrapperAddress where events on this resource are fired.
getEventFiringAddress in class Wrapperpublic boolean isAckTransaction()
Wrapper
isAckTransaction in class Wrapperpublic boolean isDialog()
WrapperDialog
isDialog in class Wrapper
public void associateServerTransaction(javax.sip.ClientTransaction ct,
javax.sip.ServerTransaction st)
associateServerTransaction in interface DialogActivitypublic javax.sip.ServerTransaction getAssociatedServerTransaction(javax.sip.ClientTransaction ct)
getAssociatedServerTransaction in interface DialogActivity
public javax.sip.message.Request createRequest(java.lang.String methodName)
throws javax.sip.SipException
createRequest in interface javax.sip.Dialogjavax.sip.SipException
public javax.sip.message.Request createRequest(javax.sip.message.Request origRequest)
throws javax.sip.SipException
createRequest in interface DialogActivityjavax.sip.SipException
public javax.sip.ClientTransaction sendRequest(javax.sip.message.Request request)
throws javax.sip.SipException,
javax.sip.TransactionUnavailableException
sendRequest in interface DialogActivityjavax.sip.SipException
javax.sip.TransactionUnavailableException
protected void ensureCorrectDialogLocalTag(javax.sip.message.Request request)
throws javax.sip.SipException
request -
javax.sip.SipException
public void sendRequest(javax.sip.ClientTransaction ct)
throws javax.sip.TransactionDoesNotExistException,
javax.sip.SipException
sendRequest in interface javax.sip.Dialogjavax.sip.TransactionDoesNotExistException
javax.sip.SipException
public javax.sip.message.Response createResponse(javax.sip.ServerTransaction origServerTransaction,
javax.sip.message.Response receivedResponse)
throws javax.sip.SipException
createResponse in interface DialogActivityjavax.sip.SipException
public javax.sip.ClientTransaction sendCancel()
throws javax.sip.SipException
sendCancel in interface DialogActivityjavax.sip.SipException
public javax.sip.message.Request createAck(long arg0)
throws javax.sip.InvalidArgumentException,
javax.sip.SipException
createAck in interface javax.sip.Dialogjavax.sip.InvalidArgumentException
javax.sip.SipException
public javax.sip.message.Request createPrack(javax.sip.message.Response arg0)
throws javax.sip.DialogDoesNotExistException,
javax.sip.SipException
createPrack in interface javax.sip.Dialogjavax.sip.DialogDoesNotExistException
javax.sip.SipException
public javax.sip.message.Response createReliableProvisionalResponse(int arg0)
throws javax.sip.InvalidArgumentException,
javax.sip.SipException
createReliableProvisionalResponse in interface javax.sip.Dialogjavax.sip.InvalidArgumentException
javax.sip.SipExceptionpublic void delete()
delete in interface javax.sip.Dialogpublic javax.sip.header.CallIdHeader getCallId()
getCallId in interface javax.sip.Dialogpublic java.lang.String getDialogId()
getDialogId in interface javax.sip.Dialog@Deprecated public javax.sip.Transaction getFirstTransaction()
getFirstTransaction in interface javax.sip.Dialogpublic javax.sip.address.Address getLocalParty()
getLocalParty in interface javax.sip.Dialogpublic javax.sip.address.Address getRemoteParty()
getRemoteParty in interface javax.sip.Dialogpublic javax.sip.address.Address getRemoteTarget()
getRemoteTarget in interface javax.sip.Dialogpublic long getLocalSeqNumber()
getLocalSeqNumber in interface javax.sip.Dialog@Deprecated public int getLocalSequenceNumber()
getLocalSequenceNumber in interface javax.sip.Dialogpublic java.lang.String getLocalTag()
getLocalTag in interface javax.sip.Dialogpublic long getRemoteSeqNumber()
getRemoteSeqNumber in interface javax.sip.Dialog@Deprecated public int getRemoteSequenceNumber()
getRemoteSequenceNumber in interface javax.sip.Dialogpublic java.lang.String getRemoteTag()
getRemoteTag in interface javax.sip.Dialogpublic java.util.Iterator<javax.sip.header.RouteHeader> getRouteSet()
getRouteSet in interface javax.sip.Dialogpublic javax.sip.DialogState getState()
getState in interface javax.sip.Dialogpublic void incrementLocalSequenceNumber()
incrementLocalSequenceNumber in interface javax.sip.Dialogpublic boolean isSecure()
isSecure in interface javax.sip.Dialogpublic boolean isServer()
isServer in interface javax.sip.Dialog
public void sendAck(javax.sip.message.Request arg0)
throws javax.sip.SipException
sendAck in interface javax.sip.Dialogjavax.sip.SipException
public void sendReliableProvisionalResponse(javax.sip.message.Response arg0)
throws javax.sip.SipException
sendReliableProvisionalResponse in interface javax.sip.Dialogjavax.sip.SipException
public void terminateOnBye(boolean arg0)
throws javax.sip.SipException
terminateOnBye in interface javax.sip.Dialogjavax.sip.SipExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic javax.sip.ClientTransaction getClientTransaction(SipActivityHandle transaction)
transaction -
public boolean addOngoingTransaction(ClientTransactionWrapper ctw)
ctw - public void removeOngoingTransaction(ClientTransactionWrapper ctw)
ctw - public void clear()
clear in class Wrapperpublic javax.sip.Dialog getWrappedDialog()
public void setWrappedDialog(javax.sip.Dialog wrappedDialog)
wrappedDialog - the wrappedDialog to setpublic boolean isClientDialog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||