use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendCancelLocationRequest.
public void sendCancelLocationRequest(CancelLocationRequest clr) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) clr;
JCancelLocationRequestImpl request = new JCancelLocationRequestImpl((Answer) msg.getGenericData());
try {
appSession.sendCancelLocationRequest(request);
} 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());
}
}
use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException 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());
}
}
use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendPurgeUEAnswer.
public void sendPurgeUEAnswer(PurgeUEAnswer pua) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) pua;
JPurgeUEAnswerImpl answer = new JPurgeUEAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendPurgeUEAnswer(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());
}
}
use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendInsertSubscriberDataRequest.
public void sendInsertSubscriberDataRequest(InsertSubscriberDataRequest idr) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) idr;
JInsertSubscriberDataRequestImpl request = new JInsertSubscriberDataRequestImpl((Answer) msg.getGenericData());
try {
appSession.sendInsertSubscriberDataRequest(request);
} 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());
}
}
use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendResetRequest.
public void sendResetRequest(ResetRequest rsr) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) rsr;
JResetRequestImpl request = new JResetRequestImpl((Answer) msg.getGenericData());
try {
appSession.sendResetRequest(request);
} 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