Examples of UnsupportedContentTypeException


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

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

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

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
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.