protected TCContinueRequest encodeTCContinue(Dialog tcapDialog, ApplicationContextName acn, CAPGprsReferenceNumber gprsReferenceNumber) throws CAPException { TCContinueRequest tcContinueReq = this.getTCAPProvider().getDialogPrimitiveFactory().createContinue(tcapDialog); if (acn != null) tcContinueReq.setApplicationContextName(acn); if (gprsReferenceNumber != null) { AsnOutputStream localasnOs = new AsnOutputStream(); ((CAPGprsReferenceNumberImpl) gprsReferenceNumber).encodeAll(localasnOs); UserInformation userInformation = TcapFactory.createUserInformation(); userInformation.setOid(true); userInformation.setOidValue(CAPGprsReferenceNumberImpl.CAP_Dialogue_OId); userInformation.setAsn(true); userInformation.setEncodeType(localasnOs.toByteArray()); tcContinueReq.setUserInformation(userInformation); } return tcContinueReq; }
protected void fireTCContinue(Dialog tcapDialog, ApplicationContextName acn, CAPGprsReferenceNumber gprsReferenceNumber, boolean returnMessageOnError) throws CAPException { if (this.getTCAPProvider().getPreviewMode()) { return; } TCContinueRequest tcContinueReq = encodeTCContinue(tcapDialog, acn, gprsReferenceNumber); if (returnMessageOnError) tcContinueReq.setReturnMessageOnError(true); try { tcapDialog.send(tcContinueReq); } catch (TCAPSendException e) { throw new CAPException(e.getMessage(), e); } }
protected TCContinueRequest encodeTCContinue(Dialog tcapDialog, Boolean sendMapAcceptInfo, ApplicationContextName acn, MAPExtensionContainer mapExtensionContainer) throws MAPException { TCContinueRequest tcContinueReq = this.getTCAPProvider().getDialogPrimitiveFactory().createContinue(tcapDialog); // we do not set ApplicationContextName if MAP Version 1 if (acn != null && MAPApplicationContext.getProtocolVersion(acn.getOid()) > 1) tcContinueReq.setApplicationContextName(acn); if (sendMapAcceptInfo && mapExtensionContainer != null && MAPApplicationContext.getProtocolVersion(acn.getOid()) > 1) { MAPAcceptInfoImpl mapAccept = new MAPAcceptInfoImpl(); mapAccept.setExtensionContainer(mapExtensionContainer); AsnOutputStream localasnOs = new AsnOutputStream(); mapAccept.encodeAll(localasnOs); UserInformation userInformation = TcapFactory.createUserInformation(); userInformation.setOid(true); userInformation.setOidValue(MAPDialogueAS.MAP_DialogueAS.getOID()); userInformation.setAsn(true); userInformation.setEncodeType(localasnOs.toByteArray()); tcContinueReq.setUserInformation(userInformation); } return tcContinueReq; }
protected void fireTCContinue(Dialog tcapDialog, Boolean sendMapAcceptInfo, ApplicationContextName acn, MAPExtensionContainer mapExtensionContainer, boolean returnMessageOnError) throws MAPException { if (this.getTCAPProvider().getPreviewMode()) { return; } TCContinueRequest tcContinueReq = encodeTCContinue(tcapDialog, sendMapAcceptInfo, acn, mapExtensionContainer); if (returnMessageOnError) tcContinueReq.setReturnMessageOnError(true); try { tcapDialog.send(tcContinueReq); } catch (TCAPSendException e) { throw new MAPException(e.getMessage(), e); } }