use of org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl in project jain-slee.diameter by RestComm.
the class S6aClientSessionImpl method sendUpdateLocationRequest.
public void sendUpdateLocationRequest(UpdateLocationRequest ulr) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) ulr;
JUpdateLocationRequestImpl answer = new JUpdateLocationRequestImpl((Request) msg.getGenericData());
try {
appSession.sendUpdateLocationRequest(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 sendCancelLocationAnswer.
public void sendCancelLocationAnswer(CancelLocationAnswer cla) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) cla;
JCancelLocationAnswerImpl request = new JCancelLocationAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendCancelLocationAnswer(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 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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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 org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl 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());
}
}
Aggregations