comparison src/de/mpiwg/itgroup/escidoc/MPIWGServices/Restlet/services/redirect/OrigRefRedirector.java @ 3:498b68667ff3

Neuer Mechanismus zum umleiten der Quellen.
author dwinter
date Fri, 20 Apr 2012 15:55:51 +0200
parents ffeb8be0bded
children
comparison
equal deleted inserted replaced
2:ffeb8be0bded 3:498b68667ff3
90 String path; 90 String path;
91 try { 91 try {
92 doc = new SAXBuilder().build(resp.getEntity().getContent()); 92 doc = new SAXBuilder().build(resp.getEntity().getContent());
93 93
94 94
95 XPath xp= EScidocTools.getESciDocXpath("//metadataRecords:md-record[@xlink:title='mpiwg-admin']/mpiwg:admin/mpiwg:orig-ref/@xlink:href"); 95 XPath xp= EScidocTools.getESciDocXpath("//metadataRecords:md-record[@xlink:title='mpiwg-admin']/mpiwg:admin/mpiwg:orig-ref/@xlink:href");
96 Attribute item = (Attribute)xp.selectSingleNode(doc); 96 Attribute item = (Attribute)xp.selectSingleNode(doc);
97 path = item.getValue(); 97 path = item.getValue();
98 } catch (Exception e) { 98 } catch (Exception e) {
99 setStatus(Status.SERVER_ERROR_INTERNAL); 99 setStatus(Status.SERVER_ERROR_INTERNAL);
100 return new StringRepresentation("<html><body>error3</body></html>"); 100 return new StringRepresentation("<html><body>error3</body></html>");