org.glassfish.osgiweb
Class WARManifestProcessor
java.lang.Object
org.glassfish.osgiweb.WARManifestProcessor
public class WARManifestProcessor
- extends Object
When a deployer installs a bundle with
Constants.WEB_BUNDLE_SCHEME,
our registered handler gets a chance to look at the stream and process the
MANIFEST.MF. It adds necessary OSGi metadata as specified in section #5.2.1.2
of RFC #66. It uses the following information during computation:
- WAR manifest entries, i.e., developer supplied data
- Properties supplied via URL query parameters
- Other information present in the WAR, e.g., existence of any jar in
WEB-INF/lib causes that jar to be added as Bundle-ClassPath.
For exact details, refer to the spec.
- Author:
- Sanjeeb.Sahoo@Sun.COM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WARManifestProcessor
public WARManifestProcessor()
readQueryParams
public static Map<String,String> readQueryParams(String query)
processManifest
public static Manifest processManifest(URL url,
String query)
throws IOException
- Reads content of the given URL, uses it to come up with a new Manifest.
- Parameters:
url - URL which is used to read the original Manifest and other dataquery - extra parameters passed by deployer
- Returns:
- a new Manifest
- Throws:
IOException - if IO related error occurs
Copyright © 2012 GlassFish Community. All Rights Reserved.