void parseFetchedXRD(XRDS xrdsOut, XRD xrd, XRD prevXRD, XRISubSegment query, Service prevService, ResolverFlags flags) throws PartialResolutionException
{
// status is not success
ServerStatus sstat = xrd.getServerStatus();
Status stat;
if (sstat == null) {
// compatibility: if no ServerStatus, look for Status
stat = xrd.getStatus();
if (stat != null) {
xrd.setServerStatus(new ServerStatus(stat.getCode(), stat.getText()));
}
}
else {
stat = new Status(sstat.getCode(), sstat.getText());
xrd.setStatus(stat);
}
if (stat == null) {
xrd.setStatus(new Status(Status.INVALID_XRDS, "Missing ServerStatus or Status element in XRD"));