Search in sources :

Example 1 with JMEIdentityCheckRequestImpl

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

the class S13ClientSessionImpl method sendMEIdentityCheckRequest.

public void sendMEIdentityCheckRequest(MEIdentityCheckRequest ecr) throws IOException {
    DiameterMessageImpl msg = (DiameterMessageImpl) ecr;
    JMEIdentityCheckRequestImpl request = new JMEIdentityCheckRequestImpl((Request) msg.getGenericData());
    try {
        appSession.sendMEIdentityCheckRequest(request);
    } catch (org.jdiameter.api.validation.AvpNotAllowedException anae) {
        throw new AvpNotAllowedException(anae.getMessage(), anae.getAvpCode(), anae.getVendorId());
    } catch (Exception e) {
        if (logger.isDebugEnabled()) {
            logger.debug("Failed to send message.", e);
        }
        throw new IOException(e.getMessage());
    }
}
Also used : 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) InternalException(org.jdiameter.api.InternalException) JMEIdentityCheckRequestImpl(org.jdiameter.common.impl.app.s13.JMEIdentityCheckRequestImpl)

Aggregations

IOException (java.io.IOException)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 InternalException (org.jdiameter.api.InternalException)1 JMEIdentityCheckRequestImpl (org.jdiameter.common.impl.app.s13.JMEIdentityCheckRequestImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1