org.mobicents.protocols.ss7.map
public abstract class MAPDialogImpl extends java.lang.Object implements MAPDialog
| Modifier and Type | Field and Description |
|---|---|
protected MAPApplicationContext |
appCntx |
protected AddressString |
destReference |
protected MAPExtensionContainer |
extContainer |
protected MAPProviderImpl |
mapProviderImpl |
protected MAPServiceBase |
mapService |
protected boolean |
normalDialogShutDown |
protected AddressString |
origReference |
protected MAPDialogState |
state |
protected Dialog |
tcapDialog |
| Modifier | Constructor and Description |
|---|---|
protected |
MAPDialogImpl(MAPApplicationContext appCntx,
Dialog tcapDialog,
MAPProviderImpl mapProviderImpl,
MAPServiceBase mapService,
AddressString origReference,
AddressString destReference) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(MAPUserAbortChoice mapUserAbortChoice) |
boolean |
addIncomingInvokeId(java.lang.Long invokeId)
Adding the new incoming invokeId into incomingInvokeList list
|
boolean |
cancelInvocation(java.lang.Long invokeId) |
java.lang.Boolean |
checkIncomingInvokeIdExists(java.lang.Long invokeId) |
void |
close(boolean prearrangedEnd) |
MAPApplicationContext |
getApplicationContext() |
java.lang.Long |
getDialogId() |
int |
getMaxUserDataLength() |
int |
getMessageUserDataLengthOnClose(boolean prearrangedEnd)
Return the MAP message length (in bytes) that will be after encoding
if TC-END case
This value must not exceed getMaxUserDataLength() value
|
int |
getMessageUserDataLengthOnSend()
Return the MAP message length (in bytes) that will be after encoding
if TC-BEGIN or TC-CONTINUE cases
This value must not exceed getMaxUserDataLength() value
|
protected java.lang.Boolean |
getNormalDialogShutDown() |
MAPServiceBase |
getService() |
MAPDialogState |
getState() |
Dialog |
getTcapDialog() |
java.lang.Object |
getUserObject() |
void |
keepAlive() |
void |
refuse(Reason reason) |
void |
release() |
void |
removeIncomingInvokeId(java.lang.Long invokeId) |
void |
resetInvokeTimer(java.lang.Long invokeId) |
void |
send() |
void |
sendErrorComponent(java.lang.Long invokeId,
MAPErrorMessage mem) |
void |
sendInvokeComponent(Invoke invoke) |
void |
sendRejectComponent(java.lang.Long invokeId,
Problem problem) |
void |
sendReturnResultComponent(ReturnResult returnResult) |
void |
sendReturnResultLastComponent(ReturnResultLast returnResultLast) |
void |
setExtentionContainer(MAPExtensionContainer extContainer) |
protected void |
setNormalDialogShutDown()
Setting that the MAP Dialog is normally shutting down -
to prevent performing onDialogReleased()
|
protected void |
setState(MAPDialogState newState) |
void |
setUserObject(java.lang.Object userObject) |
java.lang.String |
toString() |
protected Dialog tcapDialog
protected MAPProviderImpl mapProviderImpl
protected MAPServiceBase mapService
protected MAPApplicationContext appCntx
protected AddressString destReference
protected AddressString origReference
protected MAPExtensionContainer extContainer
protected MAPDialogState state
protected boolean normalDialogShutDown
protected MAPDialogImpl(MAPApplicationContext appCntx, Dialog tcapDialog, MAPProviderImpl mapProviderImpl, MAPServiceBase mapService, AddressString origReference, AddressString destReference)
public java.lang.Long getDialogId()
getDialogId in interface MAPDialogpublic MAPServiceBase getService()
getService in interface MAPDialogpublic Dialog getTcapDialog()
public void setExtentionContainer(MAPExtensionContainer extContainer)
setExtentionContainer in interface MAPDialogprotected void setNormalDialogShutDown()
protected java.lang.Boolean getNormalDialogShutDown()
public boolean addIncomingInvokeId(java.lang.Long invokeId)
invokeId - public void removeIncomingInvokeId(java.lang.Long invokeId)
public java.lang.Boolean checkIncomingInvokeIdExists(java.lang.Long invokeId)
public void abort(MAPUserAbortChoice mapUserAbortChoice) throws MAPException
abort in interface MAPDialogMAPExceptionpublic void refuse(Reason reason) throws MAPException
refuse in interface MAPDialogMAPExceptionpublic void close(boolean prearrangedEnd)
throws MAPException
close in interface MAPDialogMAPExceptionpublic void send()
throws MAPException
send in interface MAPDialogMAPExceptionpublic MAPApplicationContext getApplicationContext()
getApplicationContext in interface MAPDialogpublic MAPDialogState getState()
protected void setState(MAPDialogState newState)
public void sendInvokeComponent(Invoke invoke) throws MAPException
sendInvokeComponent in interface MAPDialogMAPExceptionpublic void sendReturnResultComponent(ReturnResult returnResult) throws MAPException
sendReturnResultComponent in interface MAPDialogMAPExceptionpublic void sendReturnResultLastComponent(ReturnResultLast returnResultLast) throws MAPException
sendReturnResultLastComponent in interface MAPDialogMAPExceptionpublic void sendErrorComponent(java.lang.Long invokeId,
MAPErrorMessage mem)
throws MAPException
sendErrorComponent in interface MAPDialogMAPExceptionpublic void sendRejectComponent(java.lang.Long invokeId,
Problem problem)
throws MAPException
sendRejectComponent in interface MAPDialogMAPExceptionpublic void resetInvokeTimer(java.lang.Long invokeId)
throws MAPException
resetInvokeTimer in interface MAPDialogMAPExceptionpublic boolean cancelInvocation(java.lang.Long invokeId)
throws MAPException
cancelInvocation in interface MAPDialogMAPExceptionpublic java.lang.Object getUserObject()
getUserObject in interface MAPDialogpublic void setUserObject(java.lang.Object userObject)
setUserObject in interface MAPDialogpublic int getMaxUserDataLength()
getMaxUserDataLength in interface MAPDialogpublic int getMessageUserDataLengthOnSend()
throws MAPException
getMessageUserDataLengthOnSend in interface MAPDialogMAPExceptionpublic int getMessageUserDataLengthOnClose(boolean prearrangedEnd)
throws MAPException
getMessageUserDataLengthOnClose in interface MAPDialogprearrangedEnd - MAPExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012. All Rights Reserved.