Package org.argeo.ajaxplorer.jdrivers

Examples of org.argeo.ajaxplorer.jdrivers.AjxpDriverException


    else if (modeStr.equals("file_list"))
      mode = LsMode.FILE_LIST;
    else if (modeStr.equals("search"))
      mode = LsMode.SEARCH;
    else
      throw new AjxpDriverException("Unkown mode " + modeStr);

    String path = request.getParameter("dir");
    if (path == null) {
      path = "/";
    }
View Full Code Here


  protected List<F> listFiles(T driver,
      String path, boolean dirOnly) {
    File dir = driver.getFile(path);

    if (!dir.exists())
      throw new AjxpDriverException("Dir " + dir + " does not exist.");

    FileFilter filter = createFileFilter(dir);
    File[] files = dir.listFiles(filter);
    List<F> ajxpFiles = new Vector<F>();
    for (File file : files) {
View Full Code Here

TOP

Related Classes of org.argeo.ajaxplorer.jdrivers.AjxpDriverException

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.