Package org.eclipse.jetty.util.resource

Examples of org.eclipse.jetty.util.resource.FileResource


        }

        @Override
        public void parseWebInfClasses(WebAppContext context, AnnotationParser parser) throws Exception
        {
          Resource r = new FileResource(AnnotedServletTest.class.getResource("resources"));
              parser.parse(r , new SimpleResolver());
        }

        @Override
        public void parseWebInfLib(WebAppContext arg0, AnnotationParser arg1) throws Exception
View Full Code Here



    List<Resource> resources = new ArrayList<Resource>();

    URL urlWebapp = new File(configs.getWebAppDir()).toURI().toURL();
    Resource webapp = new FileResource(urlWebapp);
    resources.add(webapp);

    Map<String,String> map = configs.getResourceMap();
    for(String key : map.keySet()){
      resources.add(new VirtualResource(webapp,"/"+key,map.get(key)));
View Full Code Here

    List<String> rjrClasspaths = ProjectClassLoader.getClasspaths();
    for (String path : rjrClasspaths) {
      File file = new File(path);
      if (file.isDirectory()) {
        if (logger.isDebugEnabled()) logger.debug("scanning RJR classes for annotation:" + file.getAbsolutePath());
        handleClasses(context, parser, new FileResource(file.toURI().toURL()));
      }
    }
  }
View Full Code Here

    this.webroot = webroot;
//    System.out.println("registing ["+contextPath+"] to ["+ path+"]");
    this.resourcePath = path;
    url = new File(path).toURI().toURL();
    resource = new FileResource(url);
    resourcebase = contextPath;
  }
View Full Code Here


    List<Resource> resources = new ArrayList<Resource>();

    URL urlWebapp = new File(configs.getWebAppDir()).toURI().toURL();
    Resource webapp = new FileResource(urlWebapp);
    resources.add(webapp);

    Map<String,String> map = configs.getResourceMap();
    for(String key : map.keySet()){
      resources.add(new VirtualResource(webapp,"/"+key,map.get(key)));
View Full Code Here

    List<String> rjrClasspaths = ProjectClassLoader.getClasspaths();

    for (String path : rjrClasspaths) {
      if (path.endsWith(".jar")) {
         Resource resource = new FileResource(new File(path).toURI().toURL());
         if(!items.contains(resource.getFile().getAbsolutePath())){
          if (Log.isDebugEnabled()) Log.debug("scanning RJR jar for annotation:" + path);
          handleJar(context, parser,resource, frags);
         }else{
          if (Log.isDebugEnabled()) Log.debug("skip scanning RJR jar which is already in WEB-INF/lib:" + path);
         }
View Full Code Here

    for (String path : rjrClasspaths) {
      File file = new File(path);
      if (file.isDirectory()) {

        if (Log.isDebugEnabled()) Log.debug("scanning RJR classes for annotation:" + file.getAbsolutePath());
        handleClasses(context, parser, new FileResource(file.toURI()
            .toURL()));
      }
    }
  }
View Full Code Here


    List<Resource> resources = new ArrayList<Resource>();

    URL urlWebapp = new File(configs.getWebAppDir()).toURI().toURL();
    Resource webapp = new FileResource(urlWebapp);
    resources.add(webapp);

    Map<String,String> map = configs.getResourceMap();
    for(String key : map.keySet()){
      resources.add(new VirtualResource(webapp,"/"+key,map.get(key)));
View Full Code Here


    List<Resource> resources = new ArrayList<Resource>();

    URL urlWebapp = new File(configs.getWebAppDir()).toURI().toURL();
    Resource webapp = new FileResource(urlWebapp);
    resources.add(webapp);

    Map<String,String> map = configs.getResourceMap();
    for(String key : map.keySet()){
      resources.add(new VirtualResource(webapp,"/"+key,map.get(key)));
View Full Code Here


    List<Resource> resources = new ArrayList<Resource>();

    URL urlWebapp = new File(configs.getWebAppDir()).toURI().toURL();
    Resource webapp = new FileResource(urlWebapp);
    resources.add(webapp);

    Map<String,String> map = configs.getResourceMap();
    for(String key : map.keySet()){
      resources.add(new VirtualResource(webapp,"/"+key,map.get(key)));
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.util.resource.FileResource

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.