Package org.apache.sling.commons.osgi
Class ManifestHeader
java.lang.Object
org.apache.sling.commons.osgi.ManifestHeader
This is a helper class to parse manifest header entries.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A header can have several entries separated by comma.static final class
Directives and attributes are simple name/value pairs.protected static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ManifestHeader
Parse headers Like this: path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2, path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2 The returned object maintains the order of entries (paths), directives and attributes.
-
Constructor Details
-
ManifestHeader
public ManifestHeader()
-
-
Method Details
-
getEntries
- Returns:
- Return the entries for this header.
-
parse
Parse headers Like this: path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2, path; path; dir1:=dirval1; dir2:=dirval2; attr1=attrval1; attr2=attrval2 The returned object maintains the order of entries (paths), directives and attributes.- Parameters:
header
- Header name- Returns:
- Parsed header or null if not found
-