org.apache.sling.commons.osgi
Class ManifestHeader
java.lang.Object
org.apache.sling.commons.osgi.ManifestHeader
public class ManifestHeader
- extends Object
This is a helper class to parse manifest header entries.
Method Summary |
ManifestHeader.Entry[] |
getEntries()
Return the entries for this header. |
static ManifestHeader |
parse(String header)
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManifestHeader
public ManifestHeader()
getEntries
public ManifestHeader.Entry[] getEntries()
- Return the entries for this header.
parse
public static ManifestHeader parse(String header)
- 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.
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.