Project

General

Profile

« Previous | Next » 

Revision 6502

correctly implement MN.describe
https://redmine.dataone.org/issues/1799

View differences:

MNResourceHandler.java
612 612
        id.setValue(pid);
613 613

  
614 614
        DescribeResponse dr = MNodeService.getInstance().describe(session, id);
615
        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.SZ");
616
        response.addHeader("pid", pid);
617
        response.addHeader("checksum", dr.getDataONE_Checksum().getValue());
618
        response.addHeader("checksum_algorithm", dr.getDataONE_Checksum().getAlgorithm());
619
        response.addHeader("content_length", dr.getContent_Length() + "");
620
        response.addHeader("last_modified", dateFormat.format(dr.getLast_Modified()));
621
        response.addHeader("format", dr.getDataONE_ObjectFormatIdentifier().getValue());
622
       
615
        //response.addHeader("pid", pid);
616
        response.addHeader("DataONE-Checksum", dr.getDataONE_Checksum().getValue());
617
        response.addHeader("Content-Length", dr.getContent_Length() + "");
618
        response.addHeader("Last-Modified", DateTimeMarshaller.serializeDateToUTC(dr.getLast_Modified()));
619
        response.addHeader("DataONE-fmtid", dr.getDataONE_ObjectFormatIdentifier().getValue());
620
        
623 621
    }
624 622
    
625 623
    /**

Also available in: Unified diff