Search in sources :

Example 1 with JUpdateLocationAnswerImpl

use of org.jdiameter.common.impl.app.s6a.JUpdateLocationAnswerImpl in project jain-slee.diameter by RestComm.

the class S6aServerSessionImpl method sendUpdateLocationAnswer.

public void sendUpdateLocationAnswer(UpdateLocationAnswer ula) throws IOException {
    DiameterMessageImpl msg = (DiameterMessageImpl) ula;
    JUpdateLocationAnswerImpl answer = new JUpdateLocationAnswerImpl((Answer) msg.getGenericData());
    try {
        appSession.sendUpdateLocationAnswer(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());
    }
}
Also used : JUpdateLocationAnswerImpl(org.jdiameter.common.impl.app.s6a.JUpdateLocationAnswerImpl) IOException(java.io.IOException) DiameterMessageImpl(org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) AvpNotAllowedException(net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException) InternalException(org.jdiameter.api.InternalException) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 AvpNotAllowedException (net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException)1 InternalException (org.jdiameter.api.InternalException)1 JUpdateLocationAnswerImpl (org.jdiameter.common.impl.app.s6a.JUpdateLocationAnswerImpl)1 DiameterMessageImpl (org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl)1