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

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


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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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


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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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

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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
          error("UnsupportedPackageTypeException", packageTypeDescriber, packageType);
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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

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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
          error("UnsupportedPackageTypeException", packageTypeDescriber, packageType);
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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

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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
          error("UnsupportedPackageTypeException", packageTypeDescriber, packageType);
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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

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

        PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
        if (packageProcessor == null) {
          error("UnsupportedPackageTypeException", packageTypeDescriber, packageType);
            throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
        }

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

TOP

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

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.