Examples of UrlResource


Examples of httl.spi.loaders.resources.UrlResource

  public List<String> doList(String directory, String suffix) throws IOException {
    return UrlUtils.listUrl(new URL(cleanPath(directory)), suffix);
  }
 
  protected Resource doLoad(String name, Locale locale, String encoding, String path) throws IOException {
    return new UrlResource(getEngine(), name, locale, encoding, cleanPath(path));
  }
View Full Code Here

Examples of io.undertow.server.handlers.resource.URLResource

            String fullPath = basePath + temp;
            URL url = getClass().getResource(fullPath);
            if (url == null) {
                System.out.println("url is null: " + fullPath);
            }
            return new URLResource(url, url.openConnection(), path);
        }
View Full Code Here

Examples of org.apache.cayenne.resource.URLResource

        String testConfigName = "testConfig1";
        String baseUrl = getClass().getPackage().getName().replace('.', '/');
        URL url = getClass().getClassLoader().getResource(
                baseUrl + "/cayenne-" + testConfigName + ".xml");
        ConfigurationTree<DataChannelDescriptor> tree = loader.load(new URLResource(url));

        assertNotNull(tree);
        assertNotNull(tree.getRootNode());
        assertEquals(testConfigName, tree.getRootNode().getName());
    }
View Full Code Here

Examples of org.apache.devicemap.loader.resource.URLResource

            }
            case FOLDER: {
                return new DDRLoader(new FileResource(path));
            }
            case URL: {
                return new DDRLoader(new URLResource(path));
            }
            case NOOP: {
                return new NoopLoader();
            }
        }
View Full Code Here

Examples of org.apache.hivemind.util.URLResource

{

    private Element parse(String file) throws Exception
    {
        URL fileURL = getClass().getResource(file);
        Resource r = new URLResource(fileURL);

        ElementAssembler a = new ElementAssembler();

        return a.parse(r);
    }
View Full Code Here

Examples of org.apache.hivemind.util.URLResource

    {
        URL url = ExampleUtils.class.getResource(file);

        if (url == null) throw new NullPointerException("No resource named '" + file + "'.");

        return new URLResource(url);
    }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLResource

            if (name.contains("!"))
            {
                String[] split = name.split("!");
                url = new URL("jar:" + url + "!/" + split[1] + "." + artifact.getExt());
            }
            res = new URLResource(url);
        }
        catch (MalformedURLException e)
        {
            System.out.println("Oops! " + e);
        }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLResource

    {
        source = encode(source);
        Resource res = resourcesCache.get(source);
        if (res == null)
        {
            res = new URLResource(new URL(source));
            resourcesCache.put(source, res);
        }
        Log.debug(format("SIGIL: getResource(%s) = %d", source, res));
        return res;
    }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLResource

        @Override
        public ModuleDescriptor parseDescriptor(ParserSettings settings, URL xmlURL,
            boolean validate) throws ParseException, IOException
        {
            return parseDescriptor(settings, xmlURL, new URLResource(xmlURL), validate);
        }
View Full Code Here

Examples of org.apache.ivy.plugins.repository.url.URLResource

            String cacheKey = ivyURL.toString() + defaultSettings.hashCode();
            DefaultModuleDescriptor dmd = rawCache.get(cacheKey);

            if (dmd == null)
            {
                URLResource res = new URLResource(ivyURL);
                // Note: this doesn't contain the augmented dependencies, which is OK,
                // since the ProjectRepository only needs the id and status.
                dmd = delegateParse(defaultSettings, ivyURL, res, false);
                rawCache.put(cacheKey, dmd);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.