Package org.dbwiki.web.html

Examples of org.dbwiki.web.html.FileNotFoundPage


    try {
      int pos = name.indexOf("_");
      wikiID = Integer.valueOf(name.substring(0, pos));
      fileVersion = Integer.valueOf(name.substring(pos + 1));
    } catch (Exception exception ) {
      exchange.send(new FileNotFoundPage(exchange.getRequestURI().getPath()));
      return;
    }
   
    String value = this.readConfigFile(wikiID, RelConfigFileColFileTypeValCSS, fileVersion);
    exchange.sendData("text/css", new ByteArrayInputStream(value.getBytes("UTF-8")));
View Full Code Here


    File file = new File(_directory.getAbsolutePath() + path);
    if ((file.exists()) && (!file.isDirectory())) {
      exchange.sendData(contentType, new FileInputStream(file));
    } else {
      System.out.println("File Not Found: " + path);
      exchange.send(new FileNotFoundPage(path));
    }
  }
View Full Code Here

TOP

Related Classes of org.dbwiki.web.html.FileNotFoundPage

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.