Package org.purl.sword.base

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


        {
          response.setHeader("Location", dr.getLocation());
        }
        response.setContentType("application/atom+xml; charset=UTF-8");
        PrintWriter out = response.getWriter();
        out.write(dr.marshall());
        out.flush();
      }
    } catch (SWORDAuthenticationException sae) {
      // Ask for credentials again
      if (authN.equals("Basic")) {
View Full Code Here


        {
          response.setHeader("Location", dr.getLocation());
        }
        response.setContentType("application/atom+xml; charset=UTF-8");
        PrintWriter out = response.getWriter();
        out.write(dr.marshall());
        out.flush();
      }
    } catch (SWORDAuthenticationException sae) {
      // Ask for credentials again
      if (authN.equals("Basic")) {
View Full Code Here

    System.out.println("The status is: " + client.getStatus());
   
    if( response != null)
    {
      log.debug("message is: " + response.marshall());
     
      // iterate over the data and output it
      SWORDEntry entry = response.getEntry();
     
View Full Code Here

      // Set the status
      Status status = client.getStatus();
      request.setAttribute("status", status.toString());
      if ((status.getCode() == 201) || (status.getCode() == 202)) {
        // Set the debug response
        String xml = resp.marshall();

                String validateXml = xml;
                validateXml = validateXml.replaceAll("&", "&");
                validateXml = validateXml.replaceAll("<", "&lt;");
                validateXml = validateXml.replaceAll(">", "&gt;");
View Full Code Here

                    e.printStackTrace();
        }
        request.setAttribute("error", error);
       
        // Try and get an error document in xml
        String xml = resp.marshall();
        xml = xml.replaceAll("<", "&lt;");
        xml = xml.replaceAll(">", "&gt;");
        request.setAttribute("xml", xml);
       
        request.getRequestDispatcher("depositform.jsp").forward(request, response);
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.