Code example for Manifest

Methods: getMainAttributes

0
	public DeployHandler(ServletContext servletContext) {
		super(servletContext);
	} 
 
	private Manifest getManifest(String bundleName, String bundleDescription, String processToolDeployment) {
		Manifest mf = new Manifest();
		mf.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, "1.0");
		mf.getMainAttributes().put(new Attributes.Name("Created-By"), "Aperte Modeler");
		mf.getMainAttributes().put(new Attributes.Name("Built-By"), "Aperte Modeler");
		mf.getMainAttributes().put(new Attributes.Name("Bundle-ManifestVersion"), "2");
		mf.getMainAttributes().put(new Attributes.Name("Bundle-SymbolicName"), processToolDeployment);
		mf.getMainAttributes().put(new Attributes.Name("Bundle-Version"), "1");
		mf.getMainAttributes().put(new Attributes.Name("Bundle-Name"), bundleName);
		mf.getMainAttributes().put(new Attributes.Name("Bundle-Description"), bundleDescription);
		mf.getMainAttributes().put(new Attributes.Name("Import-Package"), "org.osgi.framework");
		mf.getMainAttributes().put(new Attributes.Name("ProcessTool-Process-Deployment"), processToolDeployment);
		return mf;
	} 
	 
    private List<Element> getChildrenByName(Element parent, String name) {
        ArrayList<Element> res = new ArrayList<Element>();