Search in sources :

Example 1 with MEIdentityCheckAnswer

use of net.java.slee.resource.diameter.s13.events.MEIdentityCheckAnswer in project jain-slee.diameter by RestComm.

the class S13ServerSessionImpl method createMEIdentityCheckAnswer.

public MEIdentityCheckAnswer createMEIdentityCheckAnswer() {
    // Make sure we have the correct type of Request
    if (!(lastRequest instanceof MEIdentityCheckRequest)) {
        logger.warn("Invalid type of answer for this activity.");
        return null;
    }
    try {
        // Create the answer
        MEIdentityCheckAnswer eca = (MEIdentityCheckAnswer) this.s13MessageFactory.createS13Message(lastRequest.getHeader(), new DiameterAvp[] {}, MEIdentityCheckAnswer.COMMAND_CODE, s13MessageFactory.getApplicationId());
        // Fill session related AVPs, if present
        fillSessionAVPs(eca);
        return eca;
    } catch (InternalException e) {
        logger.error("Failed to create Authentication-Information-Answer.", e);
    }
    return null;
}
Also used : DiameterAvp(net.java.slee.resource.diameter.base.events.avp.DiameterAvp) MEIdentityCheckRequest(net.java.slee.resource.diameter.s13.events.MEIdentityCheckRequest) MEIdentityCheckAnswer(net.java.slee.resource.diameter.s13.events.MEIdentityCheckAnswer) InternalException(org.jdiameter.api.InternalException)

Aggregations

DiameterAvp (net.java.slee.resource.diameter.base.events.avp.DiameterAvp)1 MEIdentityCheckAnswer (net.java.slee.resource.diameter.s13.events.MEIdentityCheckAnswer)1 MEIdentityCheckRequest (net.java.slee.resource.diameter.s13.events.MEIdentityCheckRequest)1 InternalException (org.jdiameter.api.InternalException)1