Save This Page
Home » org.apache.sling.commons.osgi-2.0.6-source-release » org.apache.sling.commons.osgi » [javadoc | source]
org.apache.sling.commons.osgi
public class: ManifestHeader [javadoc | source]
java.lang.Object
   org.apache.sling.commons.osgi.ManifestHeader
This is a helper class to parse manifest header entries.
Nested Class Summary:
public interface  ManifestHeader.Entry  A header can have several entries separated by comma. 
public static final class  ManifestHeader.NameValuePair  Directives and attributes are simple name/value pairs. 
protected static final class  ManifestHeader.PathImpl   
Method from org.apache.sling.commons.osgi.ManifestHeader Summary:
getEntries,   parse
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.sling.commons.osgi.ManifestHeader Detail:
 public Entry[] getEntries() 
    Return the entries for this header.
 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.