Package java.io

Examples of java.io.File.toURI()


  }

  public VirtualFile applyTemplate(DeploymentTemplateInfo sourceInfo) throws Exception {
    File dsXml = File.createTempFile(getClass().getSimpleName(),TranslatorParserDeployer.TRANSLATOR_SUFFIX);
    writeTemplate(dsXml, sourceInfo);
    return VFS.getRoot(dsXml.toURI());
  }
 
  private void writeTemplate(File dsXml, DeploymentTemplateInfo values) throws Exception {

    TranslatorMetaDataGroup group = new TranslatorMetaDataGroup();
View Full Code Here


 
   public WSDLReference createWSDLReference(BPELEngineImpl engine, QName processId, QName serviceName, String portName)
    {
      File targetWSDLFile = findWSDLFile(engine, processId, serviceName, portName);
      Definition wsdlDefinition = getWSDLDefinition(engine, processId, serviceName);
      return new WSDLReference(wsdlDefinition, targetWSDLFile.toURI());
    }

    private File findWSDLFile(BPELEngineImpl engine, QName processId, QName serviceName, String portName)
    {
      ProcessConf pconf = engine._store.getProcessConfiguration(processId);
View Full Code Here

    protected Ajp13SocketConnector ajp13;

    public static JettyServer init(Server server, ServerConfig config) throws IOException {
        File configFile = config.getConfigFile();
        if (configFile != null && configFile.exists()) {
            return new JettyServer(configFile.toURI().toURL());
        } else if (config.hasWebsrvPort() || config.hasAjp13Port()) {
            return new JettyServer(config.getWebsrvPort(), config.getAjp13Port(), server);
        }
        return null;
    }
View Full Code Here

            notCompatiblePlugins.toString(), 400);
      }


      if (tmpFile.length() > 0) {
        java.net.URL url = tmpFile.toURI().toURL();
        SoftwareUpdater softwareUpdater = new SoftwareUpdater(url, false, true);
        mSoftwareUpdateItems = softwareUpdater.getAvailableSoftwareUpdateItems();
        dtde.dropComplete(true);

        SoftwareUpdateDlg updateDlg = new SoftwareUpdateDlg(this, false, mSoftwareUpdateItems);
View Full Code Here

        URL wsdlURL = SecureServiceTestHarnessService.WSDL_LOCATION;
        if (args.length > 0) {
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
View Full Code Here

        }
       
        File wsdlFile = new File(args[0]);
        try {
            if (wsdlFile.exists()) {
                wsdlURL = wsdlFile.toURI().toURL();
            } else {
                wsdlURL = new URL(args[0]);
            }
        } catch (MalformedURLException e) {
            e.printStackTrace();
View Full Code Here

      objFile = "model.obj";
    }

    File tempZipFile = File.createTempFile("urlContent", "tmp");
    OBJWriter.writeNodeInZIPFile(model, tempZipFile, 0, objFile, "3D model " + objFile);
    return new TemporaryURLContent(new URL("jar:" + tempZipFile.toURI().toURL() + "!/"
        + URLEncoder.encode(objFile, "UTF-8").replace("+", "%20")));
  }
}
View Full Code Here

                planner.addEvents(p.getEvents());
            }
            writer.write(planner.getTimeTable());
            writer.write("</body></html>");
            writer.close();
            Helper.openURL(file.toURI());
        } catch (IOException ex) {
            new RuntimeException("Problem while writing timetable of persons!", ex);
        }
    }
View Full Code Here

                writer.write("<br/>");
            }

            writer.write("</body></html>");
            writer.close();
            Helper.openURL(file.toURI());
        } catch (IOException ex) {
            new RuntimeException("Problem while writing timetable of persons!", ex);
        }
    }
}
View Full Code Here

    if (vdbURL.getProtocol().equals("jar")) {
      InputStream is = vdbURL.openStream();
      File temp = File.createTempFile("temp", ".vdb", new File(UnitTestUtil.getTestScratchPath()));
      temp.deleteOnExit();
      FileUtils.write(is, temp);
      vdbURL = temp.toURI().toURL();
    }
    return new IndexMetadataFactory(vdbURL);
  }

}
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.