Examples of WabConversion


Examples of org.apache.aries.web.converter.WabConversion

    }

    public BundleConversion convert(IDirectory parentEba, final IFile toBeConverted) {
        if (toBeConverted.getName().endsWith(WAR_FILE_EXTENSION)) {
            try {
              final WabConversion conversion = wabConverter.convert(new InputStreamProvider() {
                    public InputStream getInputStream() throws IOException {
                        return toBeConverted.open();
                    }
                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo() throws IOException {
            return new SimpleBundleInfo(BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
                 
                };
            } catch (IOException e) {
                LOGGER.error("Encountered an exception while converting " + toBeConverted.getName()
View Full Code Here

Examples of org.apache.aries.web.converter.WabConversion

    }

    public BundleConversion convert(IDirectory parentEba, final IFile toBeConverted) {
        if (toBeConverted.getName().endsWith(WAR_FILE_EXTENSION)) {
            try {
              final WabConversion conversion = wabConverter.convert(new InputStreamProvider() {
                    public InputStream getInputStream() throws IOException {
                        return toBeConverted.open();
                    }
                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo() throws IOException {
            return new SimpleBundleInfo(BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
                 
                };
            } catch (IOException e) {
                LOGGER.error("Encountered an exception while converting " + toBeConverted.getName()
View Full Code Here

Examples of org.apache.aries.web.converter.WabConversion

    }

    public BundleConversion convert(IDirectory parentEba, final IFile toBeConverted) {
        if (toBeConverted.getName().endsWith(WAR_FILE_EXTENSION)) {
            try {
              final WabConversion conversion = wabConverter.convert(new InputStreamProvider() {
                    public InputStream getInputStream() throws IOException {
                        return toBeConverted.open();
                    }
                }, toBeConverted.getName(), new Properties());
                           
                return new BundleConversion() {

          public BundleInfo getBundleInfo(ApplicationMetadataFactory amf) throws IOException {
            return new SimpleBundleInfo(amf, BundleManifest.fromBundle(conversion.getWAB()), toBeConverted.toString());
          }

          public InputStream getInputStream() throws IOException {
            return conversion.getWAB();
          }
                 
                };
            } catch (IOException e) {
                LOGGER.error("Encountered an exception while converting " + toBeConverted.getName()
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.