use of org.jdiameter.common.impl.app.cxdx.JPushProfileAnswerImpl in project jain-slee.diameter by RestComm.
the class CxDxClientSessionImpl method sendPushProfileAnswer.
/* (non-Javadoc)
* @see net.java.slee.resource.diameter.cxdx.CxDxClientSession#sendPushProfileAnswer(net.java.slee.resource.diameter.cxdx.events.PushProfileAnswer)
*/
public void sendPushProfileAnswer(PushProfileAnswer pushProfileAnswer) throws IOException {
try {
DiameterMessageImpl msg = (DiameterMessageImpl) pushProfileAnswer;
appSession.sendPushProfileAnswer(new JPushProfileAnswerImpl((Answer) msg.getGenericData()));
} catch (org.jdiameter.api.validation.AvpNotAllowedException anae) {
throw new AvpNotAllowedException(anae.getMessage(), anae.getAvpCode(), anae.getVendorId());
} catch (Exception e) {
throw new IOException(e.getMessage());
}
}
Aggregations