org.apache.felix.deploymentadmin
Class DeploymentPackageManifest

java.lang.Object
  extended by org.apache.felix.deploymentadmin.DeploymentPackageManifest

public class DeploymentPackageManifest
extends Object

This class represents a manifest file used to describe the contents of a deployment package. It can verify the correctness of a deployment package manifest and can interpret the various manifest entries and headers the OSGi specification defines.


Constructor Summary
DeploymentPackageManifest(Manifest manifest)
          Creates an instance of this class.
 
Method Summary
 List getBundleInfos()
          Determines which bundle resources are part of the deployment package, this includes customizer bundles.
 VersionRange getFixPackage()
          Determines the version range a fix package can be applied to
 String getHeader(String header)
          Determines the value of a header in the main section of the manifest.
 List getResourceInfos()
          Determines which processed resources are part of the deployment package.
 String getSymbolicName()
          Determines the symbolic name of the deployment package.
 Version getVersion()
          Determines the version of the deployment package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentPackageManifest

public DeploymentPackageManifest(Manifest manifest)
                          throws DeploymentException
Creates an instance of this class.

Parameters:
manifest - The manifest file to be used as deployment manifest
Throws:
DeploymentException - If the specified manifest is not a valid deployment package manifest file.
Method Detail

getHeader

public String getHeader(String header)
Determines the value of a header in the main section of the manifest.

Parameters:
header - Name of the header to retrieve.
Returns:
Value of the header or null if the header was not defined.

getFixPackage

public VersionRange getFixPackage()
Determines the version range a fix package can be applied to

Returns:
A VersionRange describing the versions the fixpackage applies to, null if the package is not a fix package.

getSymbolicName

public String getSymbolicName()
Determines the symbolic name of the deployment package.

Returns:
String containing the symbolic name of the deployment package.

getVersion

public Version getVersion()
Determines the version of the deployment package.

Returns:
Version of the deployment package.

getBundleInfos

public List getBundleInfos()
Determines which bundle resources are part of the deployment package, this includes customizer bundles.

Returns:
A List of BundleInfoImpl objects describing the bundle resources of the deployment package.

getResourceInfos

public List getResourceInfos()
Determines which processed resources are part of the deployment package.

Returns:
A list of ResourceInfoImpl objects describing the processed resources of the deployment package.


Copyright © 2011 Apache Software Foundation. All Rights Reserved.