Package org.apache.commons.vfs2.provider.url

Examples of org.apache.commons.vfs2.provider.url.UrlFileProvider


        DefaultFileSystemManager fs = getProviderConfig().getDefaultFileSystemManager();
        fs.setFilesCache(getProviderConfig().getFilesCache());
        getProviderConfig().prepare(fs);
        if (!fs.hasProvider("file"))
        {
            fs.addProvider("file", new DefaultLocalFileProvider());
        }
        return fs;
    }
View Full Code Here


        providerConfig.prepare(manager);

        if (!manager.hasProvider("file"))
        {
            manager.addProvider("file", new DefaultLocalFileProvider());
        }

        manager.init();

        // Locate the base folders
View Full Code Here

    public void prepare(final DefaultFileSystemManager manager)
            throws Exception
    {
        try
        {
            manager.addProvider("ram", new RamFileProvider());
            manager.addProvider("file", new DefaultLocalFileProvider());
        }
        catch (Exception e)
        {
            log.error(e);
View Full Code Here

    protected void setUp() throws Exception
    {
        super.setUp();

        manager = new DefaultFileSystemManager();
        manager.addProvider("ram", new RamFileProvider());
        manager.init();

        // File Systems Options
        RamFileSystemConfigBuilder.getInstance().setMaxSize(zeroSized, 0);
        RamFileSystemConfigBuilder.getInstance().setMaxSize(smallSized, 10);
View Full Code Here

    {
        if (!inited)
        {
            // Import the test tree
            FileObject fo = manager.resolveFile("ram:/");
            RamFileSystem fs = (RamFileSystem) fo.getFileSystem();
            fs.importTree(new File(AbstractVfsTestCase.getTestDirectory()));
            fo.close();

            inited=true;
        }
View Full Code Here

     */
    @Override
    public void prepare(final DefaultFileSystemManager manager)
        throws Exception
    {
        manager.addProvider("file", new UrlFileProvider());
    }
View Full Code Here

     */
    @Override
    public void prepare(final DefaultFileSystemManager manager)
        throws Exception
    {
        manager.addProvider("http", new UrlFileProvider());
    }
View Full Code Here

     */
    @Override
    public void prepare(final DefaultFileSystemManager manager)
        throws Exception
    {
        manager.addProvider("http", new UrlFileProvider());
    }
View Full Code Here

    @Override
    public void prepare(DefaultFileSystemManager manager)
        throws Exception
    {
        manager.addProvider("res", new ResourceFileProvider());
        manager.addProvider("file", new UrlFileProvider());
        manager.addProvider("jar", new JarFileProvider());
    }
View Full Code Here

      DefaultFileSystemManager dfsm = new DefaultFileSystemManager();
      dfsm.addProvider("jar", jarFileProvider);
      dfsm.addProvider("file", localFileProvider);
      dfsm.addExtensionMap("jar", "jar");
      dfsm.setDefaultProvider(new UrlFileProvider());
      dfsm.setFilesCache(new NullFilesCache());
      dfsm.setCacheStrategy(CacheStrategy.ON_RESOLVE);
      dfsm.setBaseFile(new File("/"));
      dfsm.init();
View Full Code Here

TOP

Related Classes of org.apache.commons.vfs2.provider.url.UrlFileProvider

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.