Java Code Examples for org.eclipse.jetty.osgi.boot.warurl.internal.WarBundleManifestGenerator

Following code examples demonstrate how to use org.eclipse.jetty.osgi.boot.warurl.internal.WarBundleManifestGenerator from jetty. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.eclipse.jetty.osgi.boot.warurl.internal.WarBundleManifestGenerator and various code implementation of this class.

        {
            if (ori instanceof JarURLConnection)
            {
                jarOri = (JarURLConnection) ori;
            }
            else
            {
                jarOri = (JarURLConnection) new URL("jar:" + actual.toString() + "!/").openConnection();
                jarOri.setDefaultUseCaches(Resource.getDefaultUseCaches());
            }
            Manifest mf = WarBundleManifestGenerator.createBundleManifest(jarOri.getManifest(), url, jarOri.getJarFile());
            try
            {
                jarOri.getJarFile().close();
                jarOri = null;
            }
            catch (Throwable t)
            {
            }
            return new WarURLConnection(actual, mf);
        } 


Advertisement
Related Classes
Advertisement