Examples of addServerProcessingInstructions()


Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

      attr.addAttribute(new Attribute("name", a.getLocalName()));
      attr.appendChild(a.getValue());
      attrEd.appendChild(attr);
    }
   
    editorDoc.addServerProcessingInstructions();
   
    /*ProcessingInstruction pi = new ProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"toHTMLJS.xsl\"");
    editorDoc.insertChild(pi, 0);
    pi = new ProcessingInstruction("host", Oscar3Props.getInstance().hostname + ":" + Oscar3Props.getInstance().port);
    editorDoc.insertChild(pi, 0);*/
 
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        response.setContentType("text/plain");
        response.getWriter().printf("Paper %s added OK!", paperName);*/
      } else if(action.equals("show")) {
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);
      } else if(action.equals("add")) {
        request.setCharacterEncoding("UTF-8");
        String fileno = request.getParameter("fileno");
        String html = request.getParameter("html");
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        scrapBook = null;
      } else if(action.equals("clear")) {
        scrapBook.clearAnnotations();
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("autoannotate")) {
        scrapBook.autoAnnotate();
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("autoannotate")) {
        scrapBook.autoAnnotate();
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("autoannotatereactions")) {
        scrapBook.autoAnnotateReactions();
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("autoannotatereactions")) {
        scrapBook.autoAnnotateReactions();
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.getDoc();
        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("regtest")) {
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.regtest().getDoc();
        doc.addServerProcessingInstructions();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("regtest")) {
        response.setContentType("application/xml");
        SciXMLDocument doc = scrapBook.regtest().getDoc();
        doc.addServerProcessingInstructions();
        new Serializer(response.getOutputStream()).write(doc);       
      } else if(action.equals("index")) {
        String s = rg.getString("scrapbookindex.html");
        StringBuffer links = new StringBuffer();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        out.println("Grand Total:");
        out.println(grandTotal.getPrecAndRecallString());
      } else if(action.equals("edit")) {
        String sid = request.getParameter("sid");
        SciXMLDocument editor = scrapBook.getEditor(sid);
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("reledit")) {
        String sid = request.getParameter("sid");
        SciXMLDocument editor = scrapBook.getRelEditor(sid);
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("reledit")) {
        String sid = request.getParameter("sid");
        SciXMLDocument editor = scrapBook.getRelEditor(sid);
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("selectedit")) {
        String editType = request.getParameter("type");
        SciXMLDocument editor = scrapBook.getSelectorEditor(editType);
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("selectedit")) {
        String editType = request.getParameter("type");
        SciXMLDocument editor = scrapBook.getSelectorEditor(editType);
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("selecteditsubmit")) {
        if(Oscar3Props.getInstance().verbose) System.out.println("Editing via selects");
        String editType = request.getParameter("type");
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.addServerProcessingInstructions()

        PrintWriter out = response.getWriter();
        out.println(editType + "s changed OK!");
        out.println("<a href='ScrapBook'>Back to Index</a>");
      } else if(action.equals("booleanedit")) {
        SciXMLDocument editor = scrapBook.getBooleanAttrEditor(request.getParameter("attrName"));
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("booleaneditsubmit")) {
        scrapBook.submitBooleans(request.getParameterMap(), request.getParameter("attrName"));
        response.setContentType("text/plain");
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.