use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aClientSessionImpl method sendAuthenticationInformationRequest.
public void sendAuthenticationInformationRequest(AuthenticationInformationRequest air) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) air;
JAuthenticationInformationRequestImpl answer = new JAuthenticationInformationRequestImpl((Request) msg.getGenericData());
try {
appSession.sendAuthenticationInformationRequest(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 S6aClientSessionImpl method sendNotifyRequest.
public void sendNotifyRequest(NotifyRequest nor) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) nor;
JNotifyRequestImpl request = new JNotifyRequestImpl((Request) msg.getGenericData());
try {
appSession.sendNotifyRequest(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 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());
}
}
use of net.java.slee.resource.diameter.base.events.avp.AvpNotAllowedException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method sendNotifyAnswer.
public void sendNotifyAnswer(NotifyAnswer ula) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) ula;
JNotifyAnswerImpl answer = new JNotifyAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendNotifyAnswer(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 sendDeleteSubscriberDataRequest.
public void sendDeleteSubscriberDataRequest(DeleteSubscriberDataRequest dsr) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) dsr;
JDeleteSubscriberDataRequestImpl request = new JDeleteSubscriberDataRequestImpl((Answer) msg.getGenericData());
try {
appSession.sendDeleteSubscriberDataRequest(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