当前位置: 首页>>代码示例>>Java>>正文


Java ReturnResultLast类代码示例

本文整理汇总了Java中org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast的典型用法代码示例。如果您正苦于以下问题:Java ReturnResultLast类的具体用法?Java ReturnResultLast怎么用?Java ReturnResultLast使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ReturnResultLast类属于org.mobicents.protocols.ss7.tcap.asn.comp包,在下文中一共展示了ReturnResultLast类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addProcessUnstructuredSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
public void addProcessUnstructuredSSResponse(long invokeId, CBSDataCodingScheme ussdDataCodingScheme, USSDString ussdString)
        throws MAPException {
    Return returnResult = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    returnResult.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = TcapFactory.createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.processUnstructuredSS_Request);
    returnResult.setOperationCode(oc);

    ProcessUnstructuredSSResponseImpl req = new ProcessUnstructuredSSResponseImpl(ussdDataCodingScheme, ussdString);
    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());
    returnResult.setParameter(p);

    this.sendReturnResultLastComponent((ReturnResultLast) returnResult);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:25,代码来源:MAPDialogSupplementaryImpl.java

示例2: addForwardShortMessageResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
public void addForwardShortMessageResponse(long invokeId) throws MAPException {

        if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.shortMsgMORelayContext && this.appCntx
                .getApplicationContextName() != MAPApplicationContextName.shortMsgMTRelayContext)
                || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version1 && this.appCntx
                        .getApplicationContextVersion() != MAPApplicationContextVersion.version2))
            throw new MAPException(
                    "Bad application context name for addForwardShortMessageResponse: must be shortMsgMORelayContext_V1 or V2 or shortMsgMTRelayContext_V1 or V2");

        ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
                .createTCResultLastRequest();

        resultLast.setInvokeId(invokeId);

        // we need not Operation Code because no answer

        this.sendReturnResultLastComponent(resultLast);
    }
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:19,代码来源:MAPDialogSmsImpl.java

示例3: 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);
    }
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:20,代码来源:MAPDialogSmsImpl.java

示例4: 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);

}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:36,代码来源:MAPDialogCallHandlingImpl.java

示例5: 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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:33,代码来源:MAPDialogCallHandlingImpl.java

示例6: addSendImsiResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addSendImsiResponse(long invokeId, IMSI imsi) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.imsiRetrievalContext)
            || (this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2))
        throw new MAPException("Bad application context name for addSendImsiResponse: must be imsiRetrievalContext_V2");

    ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createTCResultLastRequest();

    resultLast.setInvokeId(invokeId);

    // Operation Code
    OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
    oc.setLocalOperationCode((long) MAPOperationCode.sendIMSI);
    resultLast.setOperationCode(oc);

    SendImsiResponseImpl req = new SendImsiResponseImpl(imsi);
    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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogOamImpl.java

示例7: 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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例8: addEraseSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addEraseSSResponse(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 addEraseSSResponse: 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.eraseSS);
    resultLast.setOperationCode(oc);

    if (ssInfo != null) {
        EraseSSResponseImpl req = new EraseSSResponseImpl(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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例9: addActivateSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addActivateSSResponse(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 addActivateSSResponse: 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.activateSS);
    resultLast.setOperationCode(oc);

    if (ssInfo != null) {
        ActivateSSResponseImpl req = new ActivateSSResponseImpl(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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例10: addDeactivateSSResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addDeactivateSSResponse(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 addDeactivateSSResponse: 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.deactivateSS);
    resultLast.setOperationCode(oc);

    if (ssInfo != null) {
        DeactivateSSResponseImpl req = new DeactivateSSResponseImpl(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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:31,代码来源:MAPDialogSupplementaryImpl.java

示例11: addInterrogateSSResponse_SSStatus

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addInterrogateSSResponse_SSStatus(long invokeId, SSStatus ssStatus) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSResponse: 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.interrogateSS);
    resultLast.setOperationCode(oc);

    InterrogateSSResponseImpl req = new InterrogateSSResponseImpl(ssStatus);
    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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例12: addInterrogateSSResponse_BasicServiceGroupList

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addInterrogateSSResponse_BasicServiceGroupList(long invokeId, ArrayList<BasicServiceCode> basicServiceGroupList) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSResponse: 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.interrogateSS);
    resultLast.setOperationCode(oc);

    InterrogateSSResponseImpl req = new InterrogateSSResponseImpl(basicServiceGroupList, false);
    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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例13: addInterrogateSSResponse_ForwardingFeatureList

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addInterrogateSSResponse_ForwardingFeatureList(long invokeId, ArrayList<ForwardingFeature> forwardingFeatureList) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSResponse: 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.interrogateSS);
    resultLast.setOperationCode(oc);

    InterrogateSSResponseImpl req = new InterrogateSSResponseImpl(forwardingFeatureList);
    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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例14: addInterrogateSSResponse_GenericServiceInfo

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addInterrogateSSResponse_GenericServiceInfo(long invokeId, GenericServiceInfo genericServiceInfo) throws MAPException {
    if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.networkFunctionalSsContext)
            || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version2)
        throw new MAPException("Bad application context name for addInterrogateSSResponse: 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.interrogateSS);
    resultLast.setOperationCode(oc);

    InterrogateSSResponseImpl req = new InterrogateSSResponseImpl(genericServiceInfo);
    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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java

示例15: addGetPasswordResponse

import org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast; //导入依赖的package包/类
@Override
public void addGetPasswordResponse(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 addGetPasswordResponse: 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.getPassword);
    resultLast.setOperationCode(oc);

    GetPasswordResponseImpl req = new GetPasswordResponseImpl(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);
}
 
开发者ID:RestComm,项目名称:phone-simulator,代码行数:29,代码来源:MAPDialogSupplementaryImpl.java


注:本文中的org.mobicents.protocols.ss7.tcap.asn.comp.ReturnResultLast类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。