Project

General

Profile

« Previous | Next » 

Revision 6501

return Node not NodeList for getCapabilities
https://redmine.dataone.org/issues/1800

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
67 67
import org.dataone.service.types.v1.Log;
68 68
import org.dataone.service.types.v1.MonitorList;
69 69
import org.dataone.service.types.v1.Node;
70
import org.dataone.service.types.v1.NodeList;
71 70
import org.dataone.service.types.v1.NodeReference;
72 71
import org.dataone.service.types.v1.ObjectFormat;
73 72
import org.dataone.service.types.v1.ObjectFormatIdentifier;
......
587 586
        
588 587
        Node n = MNodeService.getInstance().getCapabilities();
589 588
        
590
        NodeList nl = new NodeList();
591
        nl.addNode(n);
592
        
593 589
        response.setContentType("text/xml");
594 590
        response.setStatus(200);
595
        TypeMarshaller.marshalTypeToOutputStream(nl, response.getOutputStream());
591
        TypeMarshaller.marshalTypeToOutputStream(n, response.getOutputStream());
596 592
        
597 593
    }
598 594
    

Also available in: Unified diff