本文整理汇总了Java中org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast.setInvokeId方法的典型用法代码示例。如果您正苦于以下问题:Java ReturnResultLast.setInvokeId方法的具体用法?Java ReturnResultLast.setInvokeId怎么用?Java ReturnResultLast.setInvokeId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast
的用法示例。
在下文中一共展示了ReturnResultLast.setInvokeId方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addAlertServiceCentreResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addAlertServiceCentreResponse(long invokeId) throws MAPException {
if (this.appCntx.getApplicationContextName() != MAPApplicationContextName.shortMsgAlertContext
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2))
throw new MAPException(
"Bad application context name for addAlertServiceCentreResponse: must be shortMsgAlertContext_V2");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// we need not Operation Code because no answer
// OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
// oc.setLocalOperationCode((long) MAPOperationCode.alertServiceCentre);
// resultLast.setOperationCode(oc);
this.sendReturnResultLastComponent(resultLast);
}
示例2: addProvideRoamingNumberResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addProvideRoamingNumberResponse(long invokeId, ISDNAddressString roamingNumber,
MAPExtensionContainer extensionContainer, boolean releaseResourcesSupported, ISDNAddressString vmscAddress)
throws MAPException {
MAPApplicationContextVersion vers = this.appCntx.getApplicationContextVersion();
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.roamingNumberEnquiryContext)
|| (vers != MAPApplicationContextVersion.version1 && vers != MAPApplicationContextVersion.version2 && vers != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for addProvideRoamingNumberResponse: must be roamingNumberEnquiryContext_V1, V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.provideRoamingNumber);
resultLast.setOperationCode(oc);
ProvideRoamingNumberResponseImpl res = new ProvideRoamingNumberResponseImpl(roamingNumber, extensionContainer,
releaseResourcesSupported, vmscAddress, this.appCntx.getApplicationContextVersion().getVersion());
AsnOutputStream aos = new AsnOutputStream();
res.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(res.getTagClass());
p.setPrimitive(res.getIsPrimitive());
p.setTag(res.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例3: addIstCommandResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addIstCommandResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {
MAPApplicationContextVersion vers = this.appCntx.getApplicationContextVersion();
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.ServiceTerminationContext)
|| (vers != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for addIstCommandResponse: must be ServiceTerminationContext_V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.istCommand);
resultLast.setOperationCode(oc);
if (extensionContainer!=null) {
IstCommandResponseImpl res = new IstCommandResponseImpl(extensionContainer);
AsnOutputStream aos = new AsnOutputStream();
res.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(res.getTagClass());
p.setPrimitive(res.getIsPrimitive());
p.setTag(res.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例4: addUpdateLocationResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addUpdateLocationResponse(long invokeId, ISDNAddressString hlrNumber, MAPExtensionContainer extensionContainer,
boolean addCapability, boolean pagingAreaCapability) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkLocUpContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1
&& this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for UpdateLocationResponse: must be networkLocUpContext_V1, V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.updateLocation);
resultLast.setOperationCode(oc);
UpdateLocationResponseImpl req = new UpdateLocationResponseImpl(this.appCntx.getApplicationContextVersion()
.getVersion(), hlrNumber, extensionContainer, addCapability, pagingAreaCapability);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例5: addAnyTimeSubscriptionInterrogationResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addAnyTimeSubscriptionInterrogationResponse(long invokeId, CallForwardingData callForwardingData,
CallBarringData callBarringData, ODBInfo odbInfo, CAMELSubscriptionInfo camelSubscriptionInfo,
SupportedCamelPhases supportedVlrCamelPhases, SupportedCamelPhases supportedSgsnCamelPhases, MAPExtensionContainer extensionContainer,
OfferedCamel4CSIs offeredCamel4CSIsInVlr, OfferedCamel4CSIs offeredCamel4CSIsInSgsn, ArrayList<MSISDNBS> msisdnBsList,
ArrayList<CSGSubscriptionData> csgSubscriptionDataList, CallWaitingData callWaitingData, CallHoldData callHoldData, ClipData clipData,
ClirData clirData, EctData ectData) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.anyTimeInfoHandlingContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for AnyTimeSubscriptionInterrogationRequest: must be anyTimeInfoHandlingContext_V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.anyTimeSubscriptionInterrogation);
resultLast.setOperationCode(oc);
AnyTimeSubscriptionInterrogationResponseImpl req = new AnyTimeSubscriptionInterrogationResponseImpl(callForwardingData, callBarringData, odbInfo,
camelSubscriptionInfo, supportedVlrCamelPhases, supportedSgsnCamelPhases, extensionContainer, offeredCamel4CSIsInVlr, offeredCamel4CSIsInSgsn,
msisdnBsList, csgSubscriptionDataList, callWaitingData, callHoldData, clipData, clirData, ectData);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例6: addRegisterSSResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addRegisterSSResponse(long invokeId, SSInfo ssInfo) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
|| this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
throw new MAPException("Bad application context name for addRegisterSSResponse: must be networkFunctionalSsContext_V2");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.registerSS);
resultLast.setOperationCode(oc);
if (ssInfo != null) {
RegisterSSResponseImpl req = new RegisterSSResponseImpl(ssInfo);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例7: addCheckImeiResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addCheckImeiResponse(long invokeId, EquipmentStatus equipmentStatus, UESBIIu bmuef,
MAPExtensionContainer extensionContainer) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.equipmentMngtContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1
&& this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3)) {
throw new MAPException(
"Bad application context name for CheckImeiResponse: must be equipmentMngtContext_V1, V2 or V3");
}
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.checkIMEI);
resultLast.setOperationCode(oc);
CheckImeiResponseImpl resp = new CheckImeiResponseImpl(this.appCntx.getApplicationContextVersion().getVersion(),
equipmentStatus, bmuef, extensionContainer);
AsnOutputStream aos = new AsnOutputStream();
resp.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(resp.getTagClass());
p.setPrimitive(resp.getIsPrimitive());
p.setTag(resp.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例8: addSendRoutingInfoForLCSResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addSendRoutingInfoForLCSResponse(long invokeId, SubscriberIdentity targetMS, LCSLocationInfo lcsLocationInfo,
MAPExtensionContainer extensionContainer, GSNAddress vgmlcAddress, GSNAddress hGmlcAddress, GSNAddress pprAddress,
GSNAddress additionalVGmlcAddress) throws MAPException {
if (targetMS == null || lcsLocationInfo == null) {
throw new MAPException("Mandatroy parameters targetMS or lcsLocationInfo cannot be null");
}
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationSvcGatewayContext)
|| this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
throw new MAPException(
"Bad application context name for addSendRoutingInfoForLCSResponse: must be locationSvcGatewayContext_V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.sendRoutingInfoForLCS);
resultLast.setOperationCode(oc);
SendRoutingInfoForLCSResponseImpl resInd = new SendRoutingInfoForLCSResponseImpl(targetMS, lcsLocationInfo,
extensionContainer, vgmlcAddress, hGmlcAddress, pprAddress, additionalVGmlcAddress);
AsnOutputStream asnOs = new AsnOutputStream();
resInd.encodeData(asnOs);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(resInd.getTagClass());
p.setPrimitive(resInd.getIsPrimitive());
p.setTag(resInd.getTag());
p.setData(asnOs.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例9: addSendAuthenticationInfoResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
public void addSendAuthenticationInfoResponse(long invokeId, AuthenticationSetList authenticationSetList,
MAPExtensionContainer extensionContainer, EpsAuthenticationSetList epsAuthenticationSetList) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.infoRetrievalContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for addSendAuthenticationInfoResponse: must be infoRetrievalContext_V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
if (authenticationSetList != null || extensionContainer != null || epsAuthenticationSetList != null) {
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.sendAuthenticationInfo);
resultLast.setOperationCode(oc);
SendAuthenticationInfoResponseImpl req = new SendAuthenticationInfoResponseImpl(this.appCntx
.getApplicationContextVersion().getVersion(), authenticationSetList, extensionContainer,
epsAuthenticationSetList);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例10: addCancelLocationResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addCancelLocationResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationCancellationContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1
&& this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for CancelLocationResponse: must be locationCancellationContext_V1, V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.cancelLocation);
resultLast.setOperationCode(oc);
if (extensionContainer != null) {
CancelLocationResponseImpl req = new CancelLocationResponseImpl(extensionContainer);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例11: addUpdateGprsLocationResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addUpdateGprsLocationResponse(long invokeId, ISDNAddressString hlrNumber,
MAPExtensionContainer extensionContainer, boolean addCapability, boolean sgsnMmeSeparationSupported)
throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.gprsLocationUpdateContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for UpdateGprsLocationResponse: must be gprsLocationUpdateContext_V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.updateGprsLocation);
resultLast.setOperationCode(oc);
UpdateGprsLocationResponseImpl req = new UpdateGprsLocationResponseImpl(hlrNumber, extensionContainer, addCapability,
sgsnMmeSeparationSupported);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例12: addSendIdentificationResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addSendIdentificationResponse(long invokeId, IMSI imsi, AuthenticationSetList authenticationSetList,
CurrentSecurityContext currentSecurityContext, MAPExtensionContainer extensionContainer) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.interVlrInfoRetrievalContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx
.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException(
"Bad application context name for CancelLocationResponse: must be interVlrInfoRetrievalContext_V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.sendIdentification);
resultLast.setOperationCode(oc);
SendIdentificationResponseImpl req = new SendIdentificationResponseImpl(imsi, authenticationSetList,
currentSecurityContext, extensionContainer, this.appCntx.getApplicationContextVersion().getVersion());
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}
示例13: addReadyForSMResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addReadyForSMResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.mwdMngtContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2 && this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException("Bad application context name for addReadyForSMRequest: must be mwdMngtContext_V2 or V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.readyForSM);
resultLast.setOperationCode(oc);
if (this.appCntx.getApplicationContextVersion().getVersion() >= 3 || extensionContainer != null) {
ReadyForSMResponseImpl req = new ReadyForSMResponseImpl(extensionContainer);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例14: addAuthenticationFailureReportResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addAuthenticationFailureReportResponse(long invokeId, MAPExtensionContainer extensionContainer) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.authenticationFailureReportContext)
|| (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3))
throw new MAPException("Bad application context name for authenticationFailureReportResponse: must be authenticationFailureReportContext_V3");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
.createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
if (extensionContainer != null) {
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.authenticationFailureReport);
resultLast.setOperationCode(oc);
AuthenticationFailureReportResponseImpl req = new AuthenticationFailureReportResponseImpl(extensionContainer);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
}
this.sendReturnResultLastComponent(resultLast);
}
示例15: addRegisterPasswordResponse
import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入方法依赖的package包/类
@Override
public void addRegisterPasswordResponse(long invokeId, Password password) throws MAPException {
if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
|| this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
throw new MAPException("Bad application context name for addRegisterPasswordResponse: must be networkFunctionalSsContext_V2");
ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();
resultLast.setInvokeId(invokeId);
// Operation Code
OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
oc.setLocalOperationCode((long) MAPOperationCode.registerPassword);
resultLast.setOperationCode(oc);
RegisterPasswordResponseImpl req = new RegisterPasswordResponseImpl(password);
AsnOutputStream aos = new AsnOutputStream();
req.encodeData(aos);
Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
p.setTagClass(req.getTagClass());
p.setPrimitive(req.getIsPrimitive());
p.setTag(req.getTag());
p.setData(aos.toByteArray());
resultLast.setParameter(p);
this.sendReturnResultLastComponent(resultLast);
}