public MAPDialog getMAPDialog(Long dialogId) { if (this.wrappedProvider == null) { throw new IllegalStateException("RA is has not been activated."); } MAPDialog wrappedDialog = this.wrappedProvider.getMAPDialog(dialogId); return (MAPDialogWrapper)wrappedDialog.getUserObject(); }
/** * {@inheritDoc} */ public void onDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extension) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogAccept dialogAccept = new DialogAccept(mapDialogWrapper, extension); onEvent(dialogAccept.getEventTypeName(), mapDialogWrapper, dialogAccept); }
/** * {@inheritDoc} */ public void onInvokeTimeout(MAPDialog mapDialog, Long invokeId) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); InvokeTimeout invokeTimeout = new InvokeTimeout(mapDialogWrapper, invokeId); onEvent(invokeTimeout.getEventTypeName(), mapDialogWrapper, invokeTimeout); }
/** * {@inheritDoc} */ public void onDialogDelimiter(MAPDialog mapDialog) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogDelimiter dialogDelimiter = new DialogDelimiter(mapDialogWrapper); onEvent(dialogDelimiter.getEventTypeName(), mapDialogWrapper, dialogDelimiter); }
/** * {@inheritDoc} */ public void onDialogNotice(MAPDialog mapDialog, MAPNoticeProblemDiagnostic noticeProblemDiagnostic) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogNotice dialogNotice = new DialogNotice(mapDialogWrapper, noticeProblemDiagnostic); onEvent(dialogNotice.getEventTypeName(), mapDialogWrapper, dialogNotice); }
@Override public void onDialogRelease(MAPDialog mapDialog) { if (this.currentDialog == mapDialog) this.doRemoveDialog(); else { if (this.getProcessSsRequestAction().intValue() != ProcessSsRequestAction.VAL_MANUAL_RESPONSE) { DialogData dd = (DialogData) mapDialog.getUserObject(); if (dd != null) { currentRequestDef = dd.currentRequestDef; } } } }
/** * {@inheritDoc} */ public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogReject dialogReject = new DialogReject(mapDialogWrapper, refuseReason, alternativeApplicationContext, extensionContainer); MAPDialogActivityHandle handle = onEvent(dialogReject.getEventTypeName(), mapDialogWrapper, dialogReject); // End Activity // if (handle != null) // this.sleeEndpoint.endActivity(handle); }
/** * {@inheritDoc} */ public void onDialogClose(MAPDialog mapDialog) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogClose dialogClose = new DialogClose(mapDialogWrapper); MAPDialogActivityHandle handle = onEvent(dialogClose.getEventTypeName(), mapDialogWrapper, dialogClose); // End Activity // if (handle != null) // this.sleeEndpoint.endActivity(handle); }
/** * {@inheritDoc} */ public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason, MAPExtensionContainer extensionContainer) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogUserAbort dialogUserAbort = new DialogUserAbort(mapDialogWrapper, userReason, extensionContainer); MAPDialogActivityHandle handle = onEvent(dialogUserAbort.getEventTypeName(), mapDialogWrapper, dialogUserAbort); // End Activity // if (handle != null) // this.sleeEndpoint.endActivity(handle); }
/** * {@inheritDoc} */ public void onErrorComponent(MAPDialog mapDialog, Long invokeId, MAPErrorMessage mapErrorMessage) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); ErrorComponent errorComponent = new ErrorComponent(mapDialogWrapper, invokeId, mapErrorMessage); onEvent(errorComponent.getEventTypeName(), mapDialogWrapper, errorComponent); }
/** * {@inheritDoc} */ public void onRejectComponent(MAPDialog mapDialog, Long invokeId, Problem problem, boolean isLocalOriginated) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); RejectComponent rejectComponent = new RejectComponent(mapDialogWrapper, invokeId, problem, isLocalOriginated); onEvent(rejectComponent.getEventTypeName(), mapDialogWrapper, rejectComponent); }
/** * {@inheritDoc} */ public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason, MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogProviderAbort dialogProviderAbort = new DialogProviderAbort(mapDialogWrapper, abortProviderReason, abortSource, extensionContainer); MAPDialogActivityHandle handle = onEvent(dialogProviderAbort.getEventTypeName(), mapDialogWrapper, dialogProviderAbort); // End Activity // if (handle != null) // this.sleeEndpoint.endActivity(handle); }
/** * {@inheritDoc} */ public void onDialogRelease(MAPDialog mapDialog) { try { MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogRelease dialogRelease = new DialogRelease(mapDialogWrapper); MAPDialogActivityHandle handle = onEvent(dialogRelease.getEventTypeName(), mapDialogWrapper, dialogRelease); // End Activity this.sleeEndpoint.endActivity(handle); } catch (Exception e) { this.tracer.severe(String.format( "onDialogRelease : Exception while trying to end activity for MAPDialog=%s", mapDialog), e); } }
@Override public void onDialogClose(MAPDialog mapDialog) { if (mapDialog.getUserObject() != null) { HostMessageData hmd = (HostMessageData) mapDialog.getUserObject(); MtMessageData mmd = hmd.mtMessageData; if (mmd != null && mmd.vlrNum != null && mmd.destImsi != null) { // sending SMS doMtForwardSM(mmd.msg, mmd.destImsi, mmd.vlrNum, mmd.origIsdnNumber, this.testerHost.getConfigurationData().getTestSmsServerConfigurationData() .getServiceCenterAddress()); } } try { if (needSendSend) { needSendSend = false; mapDialog.send(); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking send() : " + e.getMessage(), e, Level.ERROR); } try { if (needSendClose) { needSendClose = false; mapDialog.close(false); } } catch (Exception e) { this.testerHost.sendNotif(SOURCE_NAME, "Exception when invoking close() : " + e.getMessage(), e, Level.ERROR); } }
MAPDialogWrapper mapDialogWrapper = (MAPDialogWrapper) mapDialog.getUserObject(); DialogTimeout dt = new DialogTimeout(mapDialogWrapper);
if (mapDialog.getUserObject() != null) { HostMessageData hmd = (HostMessageData) mapDialog.getUserObject(); ResendMessageData md = hmd.resendMessageData; if (md != null) {
if (mapDialog.getUserObject() != null) { ResendMessageData md = (ResendMessageData) mapDialog.getUserObject(); try { MAPDialogSms dlg = (MAPDialogSms) mapDialog;
|| (dlg.getUserObject() != null && ((HostMessageData) dlg.getUserObject()).mtMessageData != null && ((HostMessageData) dlg.getUserObject()).mtMessageData.msg != null)) { if (this.testerHost.getConfigurationData().getTestSmsServerConfigurationData().isSendSrsmdsIfError() && curDestIsdnNumber != null) { try {