Package org.apache.catalina.util
Class ManifestResource
- java.lang.Object
- 
- org.apache.catalina.util.ManifestResource
 
- 
 public class ManifestResource extends java.lang.ObjectRepresentation of a Manifest file and its available extensions and required extensions- Author:
- Greg Murray, Justyna Horwat
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intAPPLICATIONstatic intSYSTEMstatic intWAR
 - 
Constructor SummaryConstructors Constructor Description ManifestResource(java.lang.String resourceName, java.util.jar.Manifest manifest, int resourceType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAvailableExtensionCount()Gets the number of available extensionsjava.util.ArrayList<Extension>getAvailableExtensions()Gets the list of available extensionsintgetRequiredExtensionCount()Gets the number of required extensionsjava.util.ArrayList<Extension>getRequiredExtensions()Gets the list of required extensionsjava.lang.StringgetResourceName()Gets the name of the resourcebooleanisFulfilled()Returnstrueif all required extension dependencies have been meet for thisManifestResourceobject.java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
SYSTEMpublic static final int SYSTEM - See Also:
- Constant Field Values
 
 - 
WARpublic static final int WAR - See Also:
- Constant Field Values
 
 - 
APPLICATIONpublic static final int APPLICATION - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getResourceNamepublic java.lang.String getResourceName() Gets the name of the resource- Returns:
- The name of the resource
 
 - 
getAvailableExtensionspublic java.util.ArrayList<Extension> getAvailableExtensions() Gets the list of available extensions- Returns:
- List of available extensions
 
 - 
getRequiredExtensionspublic java.util.ArrayList<Extension> getRequiredExtensions() Gets the list of required extensions- Returns:
- List of required extensions
 
 - 
getAvailableExtensionCountpublic int getAvailableExtensionCount() Gets the number of available extensions- Returns:
- The number of available extensions
 
 - 
getRequiredExtensionCountpublic int getRequiredExtensionCount() Gets the number of required extensions- Returns:
- The number of required extensions
 
 - 
isFulfilledpublic boolean isFulfilled() Returnstrueif all required extension dependencies have been meet for thisManifestResourceobject.- Returns:
- boolean true if all extension dependencies have been satisfied
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-