use of net.java.slee.resource.diameter.gx.events.GxReAuthMessage in project jain-slee.diameter by RestComm.
the class GxMessageFactoryImpl method createGxReAuthRequest.
private GxReAuthMessage createGxReAuthRequest(final DiameterHeader diameterHeader, final DiameterAvp[] avps) throws IllegalArgumentException {
boolean isRequest = false;
if (diameterHeader == null) {
isRequest = true;
}
GxReAuthMessage msg = null;
if (!isRequest) {
final Message raw = createGxMessage(diameterHeader, avps, GxReAuthAnswer.commandCode);
raw.setProxiable(true);
raw.setRequest(false);
// just in case. answers never have T flag set
raw.setReTransmitted(false);
msg = new GxReAuthAnswerImpl(raw);
} else {
final Message raw = createGxMessage(null, avps, GxReAuthRequest.commandCode);
raw.setProxiable(true);
raw.setRequest(true);
msg = new GxReAuthRequestImpl(raw);
}
return msg;
}
Aggregations