Search in sources :

Example 1 with SubsReqType

use of net.java.slee.resource.diameter.sh.events.avp.SubsReqType in project jain-slee.diameter by RestComm.

the class HSSClientChildSbb method onSubscriptionNotificationsAnswer.

// -- EVENT HANDLERS FOR DIAMETER REQUESTS ----------------------------------
public void onSubscriptionNotificationsAnswer(SubscribeNotificationsAnswer event, RequestMappingACI aci) {
    MessageData snrData = aci.getRequestData();
    aci.detach(sbbContext.getSbbLocalObject());
    SubsReqType subsReqType = snrData.getSubsReqType();
    long resultCode = event.getResultCode();
    // only one data ref should be present.. but at least one must!
    DataReferenceType dataRef = snrData.getDataReferences()[0];
    switch(dataRef.getValue()) {
        case DataReferenceType._REPOSITORY_DATA:
            byte[][] serviceIndications = snrData.getServiceIndications();
            getParent().subscribeRepositoryDataResponse(snrData.getPublicIdentity(), serviceIndications, subsReqType.getValue(), resultCode);
            break;
        case DataReferenceType._IMS_USER_STATE:
            getParent().subscribeIMSUserStateResponse(snrData.getPublicIdentity(), subsReqType.getValue(), resultCode);
            break;
        case DataReferenceType._S_CSCFNAME:
            getParent().subscribeSCSCFNameResponse(snrData.getPublicIdentity(), subsReqType.getValue(), resultCode);
            break;
        case DataReferenceType._INITIAL_FILTER_CRITERIA:
            getParent().subscribeInitialFilterCriteriaResponse(snrData.getPublicIdentity(), snrData.getServerName(), subsReqType.getValue(), resultCode);
            break;
        case DataReferenceType._PSI_ACTIVATION:
            getParent().subscribePSIActivationResponse(snrData.getPublicIdentity(), subsReqType.getValue(), resultCode);
            break;
        default:
    }
}
Also used : SubsReqType(net.java.slee.resource.diameter.sh.events.avp.SubsReqType) DataReferenceType(net.java.slee.resource.diameter.sh.events.avp.DataReferenceType)

Aggregations

DataReferenceType (net.java.slee.resource.diameter.sh.events.avp.DataReferenceType)1 SubsReqType (net.java.slee.resource.diameter.sh.events.avp.SubsReqType)1