use of org.jdiameter.common.impl.app.sh.PushNotificationAnswerImpl in project jain-slee.diameter by RestComm.
the class ShClientSubscriptionActivityImpl method sendPushNotificationAnswer.
/*
* (non-Javadoc)
* @see net.java.slee.resource.diameter.sh.ShClientSubscriptionActivity#sendPushNotificationAnswer(net.java.slee.resource.diameter.sh.server.events.PushNotificationAnswer)
*/
public void sendPushNotificationAnswer(PushNotificationAnswer answer) throws IOException {
try {
DiameterMessageImpl msg = (DiameterMessageImpl) answer;
this.clientSession.sendPushNotificationAnswer(new PushNotificationAnswerImpl((Answer) msg.getGenericData()));
clean((DiameterShMessageImpl) answer);
fetchSessionData(answer, false);
} catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
} catch (Exception e) {
// FIXME: extent this exception to add trace....
throw new IOException("Failed to send message, due to: " + e.getLocalizedMessage());
}
}
Aggregations