Package org.one.stone.soup.server.http

Examples of org.one.stone.soup.server.http.FileServer


      if(showDirectoryListings!=null)
      {
        directoryListings = new Boolean(showDirectoryListings).booleanValue();
      }

      router = new HttpFileRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()),directoryListings);
    }   
    else if(type.equals("http-ajax-service"))
    {
      String root = xServiceDefinition.getAttributeValueByName("root");
      String page404 = xServiceDefinition.getAttributeValueByName("404-file");
      String indexPage = xServiceDefinition.getAttributeValueByName("index-page");

      router = new AjaxRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()));
    }
    else if(type.equals("http-inversion-router"))
    {
      String root = xServiceDefinition.getAttributeValueByName("root");
      String page404 = xServiceDefinition.getAttributeValueByName("404-file");
      String indexPage = xServiceDefinition.getAttributeValueByName("index-page");
     
      router = new HttpInversionRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()));
    }
    else if(type.equals("http-tunnel-service"))
    {
      String root = xServiceDefinition.getAttributeValueByName("root");
      String page404 = xServiceDefinition.getAttributeValueByName("404-file");
      String indexPage = xServiceDefinition.getAttributeValueByName("index-page");
     
      router = new HttpTunnelRouter(name,new FileServer(new File(root),new File(page404),indexPage,getMimeTypes()));
    }
    else if(type.equals("http-load-balance-service"))
    {
      HttpLoadBalancingRouter balancingRouter = new HttpLoadBalancingRouter(name,server.getFileServer());
      router = balancingRouter;
View Full Code Here

TOP

Related Classes of org.one.stone.soup.server.http.FileServer

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.