Search in sources :

Example 1 with AbortSessionAnswerImpl

use of org.jdiameter.common.impl.app.auth.AbortSessionAnswerImpl in project jain-slee.diameter by RestComm.

the class AuthClientSessionActivityImpl method sendAbortSessionAnswer.

public void sendAbortSessionAnswer(AbortSessionAnswer answer) throws IOException {
    try {
        // super.sendMessage(answer);
        DiameterMessageImpl asa = (DiameterMessageImpl) answer;
        this.clientSession.sendAbortSessionAnswer(new AbortSessionAnswerImpl((Answer) asa.getGenericData()));
    } catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
        throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
    } catch (Exception e) {
        throw new IOException("Failed to send message, due to: " + e.getMessage());
    }
}
Also used : ReAuthAnswer(net.java.slee.resource.diameter.base.events.ReAuthAnswer) AbortSessionAnswer(net.java.slee.resource.diameter.base.events.AbortSessionAnswer) Answer(org.jdiameter.api.Answer) AbortSessionAnswerImpl(org.jdiameter.common.impl.app.auth.AbortSessionAnswerImpl) IOException(java.io.IOException) DiameterMessageImpl(org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) IOException(java.io.IOException) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)

Aggregations

IOException (java.io.IOException)1 AbortSessionAnswer (net.java.slee.resource.diameter.base.events.AbortSessionAnswer)1 ReAuthAnswer (net.java.slee.resource.diameter.base.events.ReAuthAnswer)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 Answer (org.jdiameter.api.Answer)1 AbortSessionAnswerImpl (org.jdiameter.common.impl.app.auth.AbortSessionAnswerImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1