Search in sources :

Example 1 with AbortSessionRequestImpl

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

the class AuthServerSessionActivityImpl method sendAbortSessionRequest.

public void sendAbortSessionRequest(AbortSessionRequest request) throws IOException {
    try {
        // super.sendMessage(request);
        DiameterMessageImpl msg = (DiameterMessageImpl) request;
        this.serverSession.sendAbortSessionRequest(new AbortSessionRequestImpl(msg.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 : AbortSessionRequestImpl(org.jdiameter.common.impl.app.auth.AbortSessionRequestImpl) 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 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 AbortSessionRequestImpl (org.jdiameter.common.impl.app.auth.AbortSessionRequestImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1