use of org.jdiameter.common.impl.app.cxdx.JLocationInfoAnswerImpl in project jain-slee.diameter by RestComm.
the class CxDxServerSessionImpl method sendLocationInfoAnswer.
/*
* (non-Javadoc)
* @see net.java.slee.resource.diameter.cxdx.CxDxServerSession#sendLocationInfoAnswer(net.java.slee.resource.diameter.cxdx.events.LocationInfoAnswer)
*/
public void sendLocationInfoAnswer(LocationInfoAnswer locationInfoAnswer) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) locationInfoAnswer;
JLocationInfoAnswerImpl answer = new JLocationInfoAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendLocationInformationAnswer(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