sendError(request, response, qxri, 211, "INVALID_QXRI(code=211): "+oEx.getMessage(), oEx);
return;
}
// defaults if resolution media type is null
TrustType trustType = new TrustType();
boolean refs = true;
boolean sep = true;
boolean https = false;
boolean saml = false;
boolean cid = true;
boolean uric = false;
boolean nodefault_t = false;
boolean nodefault_p = false;
boolean nodefault_m = false;
boolean debug = false;
String tempStr = null;
if(resMediaType != null) {
tempStr = resMediaType.getParam(MimeType.PARAM_REFS);
if(tempStr != null && tempStr.equals("false"))
refs = false;
tempStr = resMediaType.getParam(MimeType.PARAM_SEP);
if(tempStr != null && tempStr.equals("false"))
sep = false;
tempStr = resMediaType.getParam(MimeType.PARAM_TRUST);
if (tempStr != null) {
try {
trustType.setType(tempStr);
}
catch (IllegalTrustTypeException e) {
sendError(request, response, qxri, 212, "INVALID_RESOLUTION_MEDAIA_TYPE(code=212): " + resMediaType, e);
return;
}
https = trustType.isHTTPS();
saml = trustType.isSAML();
}
tempStr = resMediaType.getParam(MimeType.PARAM_HTTPS);
if(tempStr != null && tempStr.equals("true"))
https = true;
tempStr = resMediaType.getParam(MimeType.PARAM_SAML);
if(tempStr != null && tempStr.equals("true"))
saml = true;
// override the trusttype
trustType.setParameterPair(https, saml);
tempStr = resMediaType.getParam(MimeType.PARAM_URIC);
if(tempStr != null && tempStr.equals("true"))
uric = true;