Package com.caucho.vfs

Examples of com.caucho.vfs.FilePath


   * Returns the working directory.
   */
  public Path getPwd()
  {
    if (_pwd == null)
      _pwd = new FilePath(System.getProperty("user.dir"));

    return _pwd;
  }
View Full Code Here


        String []tmpNames = request.getParameterValues(name + ".file");
        String []mimeTypes
          = request.getParameterValues(name + ".content-type");

        for (int i = 0; i < fileNames.length; i++) {
          long fileLength = new FilePath(tmpNames[i]).getLength();

          addFormFile(env, files, name, fileNames[i], tmpNames[i],
                      mimeTypes[i],
                      fileLength,
                      addSlashesToValues,
View Full Code Here

    _config = config;
    _servletContext = config.getServletContext();

    checkServletAPIVersion();
   
    Path pwd = new FilePath(_servletContext.getRealPath("/"));
   
    getQuercus().setPwd(pwd);

    // need to set these for non-Resin containers
    if (! Alarm.isTest() && ! getQuercus().isResin()) {
      Vfs.setPwd(pwd);
      WorkDir.setLocalWorkDir(pwd.lookup("WEB-INF/work"));
    }

    getQuercus().init();
    getQuercus().start();
  }
View Full Code Here

TOP

Related Classes of com.caucho.vfs.FilePath

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.