Revision 5886
Added by ben leinfelder almost 14 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientViewHelper.java | ||
---|---|---|
792 | 792 |
public void setMetadataDoc(String docId) throws Exception { |
793 | 793 |
Document doc = null; |
794 | 794 |
BufferedReader buffy; |
795 |
Properties prop; |
|
796 | 795 |
InputStream response; |
797 |
|
|
798 |
//*** MetaCatServlet Properties: action, qformat and docid. *** |
|
799 |
prop = new Properties(); |
|
800 |
prop.put("action", "read"); |
|
801 |
prop.put("qformat", "xml"); |
|
802 |
prop.put("docid", docId); |
|
803 |
response = metacatClient.sendData(prop, null, null, 0); |
|
796 |
|
|
797 |
response = metacatClient.read(docId); |
|
804 | 798 |
if (response != null) { |
805 | 799 |
buffy = new BufferedReader(new InputStreamReader(response)); |
806 | 800 |
doc = XMLUtilities.getXMLReaderAsDOMDocument(buffy); |
Also available in: Unified diff
use the read() method instead of manually calling with parameters