{
if (soLog.isDebugEnabled()) soLog.debug("doGet()");
// let our URI mapper tell us what we have to look up
URIData data = moMapper.parseRequest(request);
// if the URI mapper does not know what to do, hand off the request to the plugin
if (data == null) {
if (moPlugin == null) {
soLog.warn("No plugin installed.");
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
return;
}
if (soLog.isDebugEnabled()) soLog.debug("Forwarding request to plugin.");
boolean ret = moPlugin.processCustomRequest(request, response);
// did the plugin handle the request?
if (ret == true) {
return;
} else {
soLog.warn("Plugin failed to handle the request.");
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
return;
}
}
// TODO: check if we want trusted resolution
boolean bSigned = false;
/* String sAccept = request.getHeader(Tags.HEADER_ACCEPT);
boolean bSigned =
(sAccept != null) &&
(sAccept.startsWith(Tags.CONTENT_TYPE_XRID_TRUSTED));*/
// look at the input data the URI mapper gave us
String namespace = data.getNS();
String authorityId = data.getID();
String resolveData = data.getResolveData();
XRISegment segment = null;
try {
segment = new XRISegment(resolveData);