Package org.apache.tuscany.sca.contribution.service

Examples of org.apache.tuscany.sca.contribution.service.UnsupportedContentTypeException


    public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
        throws ContributionException, IOException {
        String contentType = this.packageTypeDescriber.getType(packageSourceURL, null);
        if (contentType == null) {
            throw new UnsupportedContentTypeException("Unsupported contribution package", packageSourceURL.toString());
        }

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(contentType);
        if (packageProcessor == null) {
            throw new UnsupportedContentTypeException(contentType, packageSourceURL.getPath());
        }

        return packageProcessor.getArtifacts(packageSourceURL, inputStream);
    }
View Full Code Here


    public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
        throws ContributionException, IOException {
        String contentType = this.packageTypeDescriber.getType(packageSourceURL, null);
        if (contentType == null) {
            throw new UnsupportedContentTypeException("Unsupported contribution package", packageSourceURL.toString());
        }

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(contentType);
        if (packageProcessor == null) {
            throw new UnsupportedContentTypeException(contentType, packageSourceURL.getPath());
        }

        return packageProcessor.getArtifacts(packageSourceURL, inputStream);
    }
View Full Code Here

    public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
        throws ContributionException, IOException {
        String contentType = this.packageTypeDescriber.getType(packageSourceURL, null);
        if (contentType == null) {
            throw new UnsupportedContentTypeException("Unsupported contribution package", packageSourceURL.toString());
        }

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(contentType);
        if (packageProcessor == null) {
            throw new UnsupportedContentTypeException(contentType, packageSourceURL.getPath());
        }

        return packageProcessor.getArtifacts(packageSourceURL, inputStream);
    }
View Full Code Here

    public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
        throws ContributionException, IOException {
        String contentType = this.packageTypeDescriber.getType(packageSourceURL, null);
        if (contentType == null) {
            throw new UnsupportedContentTypeException("Unsupported contribution package", packageSourceURL.toString());
        }

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(contentType);
        if (packageProcessor == null) {
            throw new UnsupportedContentTypeException(contentType, packageSourceURL.getPath());
        }

        return packageProcessor.getArtifacts(packageSourceURL, inputStream);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.contribution.service.UnsupportedContentTypeException

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.