use of org.jdiameter.api.InternalException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method createPurgeUEAnswer.
public PurgeUEAnswer createPurgeUEAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof PurgeUERequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
PurgeUEAnswer aia = (PurgeUEAnswer) this.s6aMessageFactory.createS6aMessage(lastRequest.getHeader(), new DiameterAvp[] {}, PurgeUEAnswer.COMMAND_CODE, s6aMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(aia);
return aia;
} catch (InternalException e) {
logger.error("Failed to create Purge-UE-Answer.", e);
}
return null;
}
use of org.jdiameter.api.InternalException in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method createNotifyAnswer.
public NotifyAnswer createNotifyAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof NotifyRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
NotifyAnswer aia = (NotifyAnswer) this.s6aMessageFactory.createS6aMessage(lastRequest.getHeader(), new DiameterAvp[] {}, NotifyAnswer.COMMAND_CODE, s6aMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(aia);
return aia;
} catch (InternalException e) {
logger.error("Failed to create Notify-Answer.", e);
}
return null;
}
use of org.jdiameter.api.InternalException in project jain-slee.diameter by RestComm.
the class S13ServerSessionImpl method createMEIdentityCheckAnswer.
public MEIdentityCheckAnswer createMEIdentityCheckAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof MEIdentityCheckRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
MEIdentityCheckAnswer eca = (MEIdentityCheckAnswer) this.s13MessageFactory.createS13Message(lastRequest.getHeader(), new DiameterAvp[] {}, MEIdentityCheckAnswer.COMMAND_CODE, s13MessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(eca);
return eca;
} catch (InternalException e) {
logger.error("Failed to create Authentication-Information-Answer.", e);
}
return null;
}
use of org.jdiameter.api.InternalException in project jain-slee.diameter by RestComm.
the class S6aClientSessionImpl method createCancelLocationAnswer.
public CancelLocationAnswer createCancelLocationAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof CancelLocationRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
CancelLocationAnswer cla = (CancelLocationAnswer) this.s6aMessageFactory.createS6aMessage(lastRequest.getHeader(), new DiameterAvp[] {}, CancelLocationAnswer.COMMAND_CODE, s6aMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(cla);
return cla;
} catch (InternalException e) {
logger.error("Failed to create Cancel-Location-Answer.", e);
}
return null;
}
use of org.jdiameter.api.InternalException in project jain-slee.diameter by RestComm.
the class S6aClientSessionImpl method createInsertSubscriberDataAnswer.
public InsertSubscriberDataAnswer createInsertSubscriberDataAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof InsertSubscriberDataRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
InsertSubscriberDataAnswer ida = (InsertSubscriberDataAnswer) this.s6aMessageFactory.createS6aMessage(lastRequest.getHeader(), new DiameterAvp[] {}, InsertSubscriberDataAnswer.COMMAND_CODE, s6aMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(ida);
return ida;
} catch (InternalException e) {
logger.error("Failed to create Insert-Subscriber-Data-Answer.", e);
}
return null;
}
Aggregations