Examples of FileProvider


Examples of org.apache.axis.configuration.FileProvider

      m_simpleAxisServer.setMyConfig( config );
      m_simpleAxisServer.start(  );
   }

    protected FileProvider getFileProvider() throws ConfigurationException {
        FileProvider config = new FileProvider( getAxisConfigBasePath(  ),
                                                getAxisConfigFileName(  ) );
        return config;
    }
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

        super.tearDown();
    }

    protected FileProvider getFileProvider() throws ConfigurationException
    {
        return new FileProvider(InteropTestCase.class.getResourceAsStream("/server-config.wsdd"));
    }
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

            throw new BuildException( "No deploy WSDDs were specified!" );
        }

        try
        {
            AxisEngine axisEngine = new AxisServer( new FileProvider( m_configWsdd ) );
            m_msgContext = new MessageContext( axisEngine );
            m_axisAdmin = new Admin();
            for ( int i = 0; i < m_wsddFiles.size(); i++ )
            {
                deployWsdd( (File) m_wsddFiles.get( i ) );
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

                return;
            }
        }

        // Create and register the provider
        final FileProvider provider = createProvider(classname);
        final String[] schemas = getSchemas(providerDef);
        if (schemas.length > 0)
        {
            addProvider(schemas, provider);
        }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

// Extract the scheme
        final String scheme = UriParser.extractScheme(uri);
        if (scheme != null)
        {
// An absolute URI - locate the provider
            final FileProvider provider = (FileProvider) providers.get(scheme);
            if (provider != null)
            {
                return provider.findFile(realBaseFile, uri, fileSystemOptions);
            }
// Otherwise, assume a local file
        }

// Handle absolute file names
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

            throw new FileSystemException("vfs.provider/invalid-descendent-name.error", name);
        }

        String scheme = realBase.getScheme();
        String fullPath = realBase.getRootURI() + resolvedPath;
        final FileProvider provider = (FileProvider) providers.get(scheme);
        if (provider != null)
        {
            // todo: extend the filename parser to be able to parse
            // only a pathname and take the missing informations from
            // the base. Then we can get rid of the string operation.
            //// String fullPath = base.getRootURI() + resolvedPath.substring(1);

            return provider.parseUri(realBase, fullPath);
        }

        if (scheme != null)
        {
// An unknown scheme - hand it to the default provider - if possible
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

// Extract the scheme
        final String scheme = UriParser.extractScheme(uri);
        if (scheme != null)
        {
// An absolute URI - locate the provider
            final FileProvider provider = (FileProvider) providers.get(scheme);
            if (provider != null)
            {
                return provider.parseUri(null, uri);
            }

// Otherwise, assume a local file
        }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

     */
    public FileObject createFileSystem(final String scheme,
                                       final FileObject file)
        throws FileSystemException
    {
        final FileProvider provider = (FileProvider) providers.get(scheme);
        if (provider == null)
        {
            throw new FileSystemException("vfs.impl/unknown-provider.error", new Object[]{scheme, file});
        }
        return provider.createFileSystem(scheme, file, file.getFileSystem().getFileSystemOptions());
    }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

        return new VfsStreamHandlerFactory();
    }

    public void closeFileSystem(FileSystem filesystem)
    {
        FileProvider provider = (FileProvider) providers.get(filesystem.getRootName().getScheme());
        if (provider != null)
        {
            ((AbstractFileProvider) provider).closeFileSystem(filesystem);
        }
    }
View Full Code Here

Examples of org.apache.commons.vfs.provider.FileProvider

     *
     * @throws FileSystemException if the given scheme is not konwn
     */
    public Collection getProviderCapabilities(final String scheme) throws FileSystemException
    {
        FileProvider provider = (FileProvider) providers.get(scheme);
        if (provider == null)
        {
            throw new FileSystemException("vfs.impl/unknown-scheme.error", new Object[]{scheme});
        }

        return provider.getCapabilities();
    }
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.