Package org.simpleframework.http

Examples of org.simpleframework.http.Path


         PrintStream body = response.getPrintStream();
         long time = System.currentTimeMillis();
         String msg="";
         String home = System.getProperty("user.dir");
         String contentType = "text/plain";
         Path path=request.getPath();
         if(path.getPath().substring(path.getPath().length()-3).equals(".js")) contentType = "application/javascript";
         if(path.getPath().substring(path.getPath().length()-3).equals("css")) contentType = "text/css";
             
         response.set("Content-Type", contentType);
         response.set("Server", "ServerLyzer/1.0 (Simple 4.0)");
         response.setDate("Date", time);
         response.setDate("Last-Modified", time);
         String filename= config.getString("pagelyzer.run.default.comparison.path").replace("/ext", "/js") +path.getPath();
        
         String content;
         if (ServerLyzer.wwwroot == null){
           content = new Scanner(new File(filename)).useDelimiter("\\Z").next();
           /*
 
View Full Code Here

TOP

Related Classes of org.simpleframework.http.Path

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.