Package com.mockey.storage.xml

Examples of com.mockey.storage.xml.MockeyXmlFactory


    private static final long serialVersionUID = -8618555367432628615L;

    public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

    MockeyXmlFactory g = new MockeyXmlFactory();

        String fileOutput;
        try {
            fileOutput = g.getStoreAsString(store, true);
        } catch (TransformerException e) {
            throw new ServletException(e);
        }

        resp.setContentType("application/xml");
View Full Code Here


   * Every time something gets saved, we write to memory.
   */
  private synchronized void writeMemoryToFile() {

    if (!transientState) {
      MockeyXmlFactory g = new MockeyXmlFactory();
      g.writeStoreToXML(store, MockeyXmlFileManager.MOCK_SERVICE_DEFINITION);
    }

  }
View Full Code Here

TOP

Related Classes of com.mockey.storage.xml.MockeyXmlFactory

Copyright © 2018 www.massapicom. 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.