Package org.purl.sword.base

Examples of org.purl.sword.base.DepositResponse.unmarshall()


          || status.getCode() == HttpStatus.SC_CREATED) {
        messageBody = readResponse(httpResponse.getEntity().getContent());
        response = new DepositResponse(status.getCode());
        response.setLocation(httpResponse.getFirstHeader("Location").getValue());
        // added call for the status code.
        lastUnmarshallInfo = response.unmarshall(messageBody, new Properties());
      }
      else {
        messageBody = readResponse(httpResponse.getEntity().getContent());
        response = new DepositResponse(status.getCode());
        response.unmarshallErrorDocument(messageBody);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.