use of net.java.slee.resource.diameter.cxdx.events.LocationInfoRequest in project jain-slee.diameter by RestComm.
the class CxDxServerSessionImpl method createLocationInfoAnswer.
/*
* (non-Javadoc)
* @see net.java.slee.resource.diameter.cxdx.CxDxServerSession#createLocationInfoAnswer()
*/
public LocationInfoAnswer createLocationInfoAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof LocationInfoRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
LocationInfoAnswer lia = (LocationInfoAnswer) this.cxdxMessageFactory.createCxDxMessage(lastRequest.getHeader(), new DiameterAvp[] {}, LocationInfoAnswer.COMMAND_CODE, cxdxMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(lia);
return lia;
} catch (InternalException e) {
logger.error("Failed to create Location-Info-Answer.", e);
}
return null;
}
Aggregations