Package org.purl.sword.base

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


      }
   
      // Print out the Service Document
      response.setContentType("application/atomsvc+xml; charset=UTF-8");
      PrintWriter out = response.getWriter();
      out.write(sd.marshall());
      out.flush();
    } catch (SWORDAuthenticationException sae) {
      if (authN.equals("Basic")) {
        String s = "Basic realm=\"SWORD\"";
        response.setHeader("WWW-Authenticate", s);
View Full Code Here


      }
   
      // Print out the Service Document
      response.setContentType("application/atomsvc+xml; charset=UTF-8");
      PrintWriter out = response.getWriter();
      out.write(sd.marshall());
      out.flush();
    } catch (SWORDAuthenticationException sae) {
      if (authN.equals("Basic")) {
        String s = "Basic realm=\"SWORD\"";
        response.setHeader("WWW-Authenticate", s);
View Full Code Here

    Status status = client.getStatus();
    System.out.println("The status is: " + status);

    if (status.getCode() == 200)
    {
      log.debug("message is: " + document.marshall());
     
      System.out.println("\nThe following Details were retrieved: ");
      System.out.println("SWORD Version: "
          + document.getService().getVersion());
      System.out.println("Supports NoOp? " + document.getService().isNoOp());
View Full Code Here

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

                String validateXml = xml;
                validateXml = validateXml.replaceAll("&", "&");
                validateXml = validateXml.replaceAll("<", "&lt;");
                validateXml = validateXml.replaceAll(">", "&gt;");
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.