Examples of addServerProcessingInstructions()


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

        response.setContentType("text/plain");
        response.getWriter().println("Booleans submitted OK!");
      } else if(action.equals("textfieldedit")) {
        String editType = request.getParameter("type");
        SciXMLDocument editor = scrapBook.getTextFieldEditor(editType);
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);       
      } else if(action.equals("delne")) {
        String sid = request.getParameter("sid");
        String neid = request.getParameter("neid");
View Full Code Here

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

        scrapBook.moveNe(sid, start, end, neid);
        response.setContentType("text/plain");
        response.getWriter().println("Moved ne OK!");
      } else if(action.equals("makepaper")) {
        SciXMLDocument doc = scrapBook.makePaper();
        doc.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(doc);               
      } else if(action.equals("makepubxmlpaper")) {
        Document doc = scrapBook.makePubXMLPaper();
        response.setContentType("application/xml");
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("attred")) {
        String sid = request.getParameter("sid");
        String neid = request.getParameter("neid");
        SciXMLDocument editor = scrapBook.getAttributeEditor(sid, neid);
        editor.addServerProcessingInstructions();
        response.setContentType("application/xml");
        new Serializer(response.getOutputStream()).write(editor);               
      } else if(action.equals("edattr")) {
        String sid = request.getParameter("sid");
        String neid = request.getParameter("neid");
View Full Code Here

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

      list.appendChild(doc.makeListItem(a));

      a = doc.makeLink("Search?indexall", "Index entire workspace");
      list.appendChild(doc.makeListItem(a));

      doc.addServerProcessingInstructions();
      response.setContentType("application/xml");
      new Serializer(response.getOutputStream()).write(doc);
      return;
    }
   
View Full Code Here

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

      }
    }
   
    if(resultsDoc != null) {
      response.setContentType("application/xml");
      resultsDoc.addServerProcessingInstructions();
      new Serializer(response.getOutputStream()).write(resultsDoc);
    }
  }
}
View Full Code Here

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

      //list.appendChild(doc.makeListItem(a));

      //a = doc.makeLink("Search?indexall", "Index entire workspace");
      //list.appendChild(doc.makeListItem(a));

      doc.addServerProcessingInstructions();
      response.setContentType("application/xml");
      new Serializer(response.getOutputStream()).write(doc);
      return;
    }
View Full Code Here

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

          } catch (RuntimeException e) {
            //e.printStackTrace();
          }
         
          if(markedup.getName().equals("source.xml")) {
            doc.addServerProcessingInstructions();
            doc.removeViewerProcessingInstruction();
          } else {
            doc.addServerProcessingInstructions();           
          }
          response.setContentType("application/xml");
View Full Code Here

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

         
          if(markedup.getName().equals("source.xml")) {
            doc.addServerProcessingInstructions();
            doc.removeViewerProcessingInstruction();
          } else {
            doc.addServerProcessingInstructions();           
          }
          response.setContentType("application/xml");
          new Serializer(response.getOutputStream()).write(doc);
        }
      } catch (Exception e) {
View Full Code Here

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

        response.getWriter().write("Imported all files to scrapbook OK");
        return;
      }
     
      SciXMLDocument doc = new SciXMLDocument();
      doc.addServerProcessingInstructions();
      Element para = doc.addPara();
      para.appendChild(doc.makeLink("/ViewPaper" + request.getPathInfo() + "?reprocess", "Reprocess this directory"));
     
      Element list = doc.addList();
     
View Full Code Here

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

    boolean cutDown = Oscar3Props.getInstance().serverType.equals("cutdown");
   
    try {
      SciXMLDocument doc = NEPage.makeNEPage(name, type, smiles, inchi, ontIDs, cutDown);
     
      doc.addServerProcessingInstructions();
      new Serializer(response.getOutputStream()).write(doc);
    } catch (Exception e) {
      e.printStackTrace();
      response.setContentType("text/plain");
      response.getWriter().println("Error in Named Entity viewer!");
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.