|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sling.commons.osgi.ManifestHeader
public class ManifestHeader
This is a helper class to parse manifest header entries.
Nested Class Summary | |
---|---|
static interface |
ManifestHeader.Entry
A header can have several entries separated by comma. |
static class |
ManifestHeader.NameValuePair
Directives and attributes are simple name/value pairs. |
protected static class |
ManifestHeader.PathImpl
|
Constructor Summary | |
---|---|
ManifestHeader()
|
Method Summary | |
---|---|
ManifestHeader.Entry[] |
getEntries()
Return the entries for this header. |
static ManifestHeader |
parse(java.lang.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 |
Constructor Detail |
---|
public ManifestHeader()
Method Detail |
---|
public ManifestHeader.Entry[] getEntries()
public static ManifestHeader parse(java.lang.String header)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |