use of org.jdiameter.common.impl.app.rx.RxAAAnswerImpl in project jain-slee.diameter by RestComm.
the class RxServerSessionActivityImpl method sendAAAnswer.
/**
* {@inheritDoc}
*/
@Override
public void sendAAAnswer(final AAAnswer aaa) throws IOException {
fetchCurrentState(aaa);
final DiameterMessageImpl msg = (DiameterMessageImpl) aaa;
try {
session.sendAAAnswer(new RxAAAnswerImpl((Answer) msg.getGenericData()));
} catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
final AvpNotAllowedException anae = new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
throw anae;
} catch (Exception e) {
throw new IOException("Failed to send message.", e);
}
}
Aggregations