use of org.jdiameter.common.impl.app.s6a.JAuthenticationInformationAnswerImpl in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendAuthenticationInformationAnswer.
public void sendAuthenticationInformationAnswer(AuthenticationInformationAnswer aia) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) aia;
JAuthenticationInformationAnswerImpl answer = new JAuthenticationInformationAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendAuthenticationInformationAnswer(answer);
} 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());
}
}
Aggregations