Search in sources :

Example 1 with MEIdentityCheckRequest

use of net.java.slee.resource.diameter.s13.events.MEIdentityCheckRequest 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)

Example 2 with MEIdentityCheckRequest

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

the class S13MessageFactoryImpl method createMEIdentityCheckRequest.

public MEIdentityCheckRequest createMEIdentityCheckRequest(String sessionId) throws IllegalArgumentException {
    MEIdentityCheckRequest ecr = createMEIdentityCheckRequest();
    ecr.setSessionId(sessionId);
    return ecr;
}
Also used : MEIdentityCheckRequest(net.java.slee.resource.diameter.s13.events.MEIdentityCheckRequest)

Aggregations

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