Project

General

Profile

« Previous | Next » 

Revision 6678

Added by Chris Jones over 12 years ago

Call replicate() asynchronously.

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
611 611
	 * @throws IllegalAccessException 
612 612
	 * @throws InstantiationException 
613 613
     */
614
    private void replicate() throws ServiceFailure, InvalidRequest, IOException, FileUploadException, JiBXException, NotImplemented, NotAuthorized, InsufficientResources, UnsupportedType, InstantiationException, IllegalAccessException {
614
    private void replicate() 
615
        throws ServiceFailure, InvalidRequest, IOException, FileUploadException, 
616
        JiBXException, NotImplemented, NotAuthorized, InsufficientResources, 
617
        UnsupportedType, InstantiationException, IllegalAccessException {
615 618

  
616 619
        logMetacat.debug("in POST replicate()");
617 620
        
......
622 625
        logMetacat.debug("sourceNode: " + sn);
623 626
        NodeReference sourceNode = new NodeReference();
624 627
        sourceNode.setValue(sn);
628
        response.setStatus(200);
629
        OutputStream out = response.getOutputStream();
630
        IOUtils.write("OKAY", out, "UTF-8");
625 631
        MNodeService.getInstance(request).replicate(session, sysmeta, sourceNode);
626 632

  
627
        response.setStatus(200);
628

  
629 633
    }
630 634

  
631 635
    /**

Also available in: Unified diff