Search in sources :

Example 1 with ReAuthRequestImpl

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

the class AuthServerSessionActivityImpl method sendReAuthRequest.

public void sendReAuthRequest(ReAuthRequest request) throws IOException {
    try {
        // super.sendMessage(request);
        DiameterMessageImpl msg = (DiameterMessageImpl) request;
        this.serverSession.sendReAuthRequest(new ReAuthRequestImpl(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);
    }
}
Also used : ReAuthRequestImpl(org.jdiameter.common.impl.app.auth.ReAuthRequestImpl) 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 ReAuthRequestImpl (org.jdiameter.common.impl.app.auth.ReAuthRequestImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1