use of org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl in project jain-slee.diameter by RestComm.
the class S6aClientSessionImpl method sendResetAnswer.
public void sendResetAnswer(ResetAnswer rsa) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) rsa;
JResetAnswerImpl request = new JResetAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendResetAnswer(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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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());
}
}
Aggregations