%@page language="java"%> <%@page contentType="text/html; charset=UTF-8" %> <%@page import="org.dataone.client.v1.itk.D1Client"%> <%@page import="org.dataone.service.types.v1.NodeList"%> <%@page import="java.util.List"%> <%@page import="org.dataone.service.types.v1.Node"%> <%@page import="org.dataone.service.types.v1.ObjectList"%> <%@page import="org.dataone.service.types.v1.Identifier"%> <%@page import="org.dataone.service.types.v1.ObjectLocationList"%> <%@page import="org.dataone.service.types.v1.ObjectLocation"%> <%@page import="org.dataone.service.types.v1.NodeReference"%> <%@page import="java.io.InputStream"%> <%@page import="org.dataone.service.types.v1.SystemMetadata"%> <%@page import="org.dataone.configuration.Settings"%>
Environment: <%=D1Client.getCN().getNodeBaseServiceUrl() %>
<% // disable the local cache for these requests Settings.getConfiguration().setProperty("D1Client.useLocalCache", false); // get the PID from the request if it is there Identifier pid = null; if (request.getParameter("pid") != null) { pid = new Identifier(); pid.setValue(request.getParameter("pid")); } %> <% if (pid != null) { %>Resolve results for <%=pid.getValue() %>
<% String errorMsg = null; ObjectLocationList objectLocationList = null; try { objectLocationList = D1Client.getCN().resolve(null, pid); } catch (Exception e) { errorMsg = e.getMessage(); } if (objectLocationList != null) { %>Location | Get | System Metadata | Log |
---|---|---|---|
<%=node.getValue() %> | <%=getString %> | <%=systemMetadataString %> | <%=logString %> |
Other nodes that may contain the object
Location | Get | System Metadata | Log |
---|---|---|---|
<%=node.getValue() %> | <%=getString %> | <%=systemMetadataString %> | <%=logString %> |
<%=errorMsg %>
<% } } %>