Interface WebFragmentsInfo
-
public interface WebFragmentsInfoCollated web fragment information. Provides information for the WEB-INF/lib JAR files. All JARs are represented as either ordered fragments or excluded fragments. The excluded fragments collection is empty unless there is an 'absolute-ordering' element in the web descriptor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<WebFragmentInfo>getExcludedFragments()An unordered list of excluded fragment information.java.util.List<WebFragmentInfo>getOrderedFragments()An ordered list of fragment information.java.lang.StringgetServletSchemaLevel()Tell the schema level of the web module descriptor.intgetServletSpecLevel()Tell the feature level of the web container.booleanisModuleMetadataComplete()Tell if the web module is metadata-complete.
-
-
-
Method Detail
-
getServletSpecLevel
int getServletSpecLevel()
Tell the feature level of the web container. This impacts whether the metadata-complete setting affects the processing of 'absolute-ordering' elements. SeegetExcludedFragments().- Returns:
- The feature level of the web container.
-
getServletSchemaLevel
java.lang.String getServletSchemaLevel()
Tell the schema level of the web module descriptor.- Returns:
- The schema level of the web module descriptor.
-
isModuleMetadataComplete
boolean isModuleMetadataComplete()
Tell if the web module is metadata-complete. This uses the web module deployment descriptor, the version of that descriptor, and the 'metadata-complete' attribute value.- Returns:
- True or false telling if the web module is metadata-complete.
-
getOrderedFragments
java.util.List<WebFragmentInfo> getOrderedFragments()
An ordered list of fragment information. There is one element for every non-excluded JAR under the WEB-INF/lib folder. The list is ordered using web module and fragment metadata.- Returns:
- The ordered list of fragment information.
-
getExcludedFragments
java.util.List<WebFragmentInfo> getExcludedFragments()
An unordered list of excluded fragment information. There is one element for every excluded JAR under the WEB-INF/lib folder. A JAR is excluded if an 'absolute-ordering' element is present in the web module deployment descriptor and the JAR is not listed within that element. The use of the 'absolute-ordering' element is conditional on the web module descriptor schema version and on the web module descriptor 'metadata-complete' setting. For schema version 3.0, the absolute ordering element is used only when 'metadata-complete' is false. For schema version 3.1, the absolute ordering element is used regardless of the 'metadata-complete' value. The element should have been used with schema version 3.0, but is not used because WebSphere v8.0 did not use it when metadata-complete is false. The schema version 3.1 behavior is the specification defined behavior for both schema version 3.1 and schema version 3.0.- Returns:
- An unordered list of excluded fragments.
-
-