Class WebDescriptor
java.lang.Object
org.eclipse.jetty.ee9.webapp.Descriptor
org.eclipse.jetty.ee9.webapp.WebDescriptor
- Direct Known Subclasses:
- DefaultsDescriptor, FragmentDescriptor, OverrideDescriptor
Descriptor
A web descriptor (web.xml/web-defaults.xml/web-overrides.xml).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic XmlParserprotected booleanprotected booleanprotected intprotected MetaData.Completeprotected intFields inherited from class Descriptor_dtd, _root, _xml
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddClassName(String className) intintstatic XmlParsergetParser(boolean validating) Get a parser for parsing web descriptor content.booleanstatic booleanCheck if the descriptor is metadata-complete.booleanstatic XmlParsernewParser(boolean validating) Create a new parser for parsing web descriptors.voidvoidvoidvoidMethods inherited from class DescriptorgetResource, getRoot, getURI, toString
- 
Field Details- 
__nonValidatingStaticParser
- 
_metaDataComplete
- 
_majorVersionprotected int _majorVersion
- 
_minorVersionprotected int _minorVersion
- 
_classNames
- 
_distributableprotected boolean _distributable
- 
_isOrderedprotected boolean _isOrdered
- 
_ordering
 
- 
- 
Constructor Details- 
WebDescriptor
 
- 
- 
Method Details- 
isMetaDataCompleteCheck if the descriptor is metadata-complete.- Parameters:
- d- the descriptor (web.xml, web-fragment.xml, web-default.xml, web-override.xml) to check
- Returns:
- true iff metadata-complete=true is declared in the descriptor
 
- 
getParserGet a parser for parsing web descriptor content.- Parameters:
- validating- true if the parser should validate syntax, false otherwise
- Returns:
- an XmlParser for web descriptors
 
- 
newParserCreate a new parser for parsing web descriptors.- Parameters:
- validating- if true, the parser will validate syntax
- Returns:
- an XmlParser
 
- 
parse- Overrides:
- parsein class- Descriptor
- Throws:
- Exception
 
- 
getMetaDataComplete
- 
getMajorVersionpublic int getMajorVersion()
- 
getMinorVersionpublic int getMinorVersion()
- 
processVersionpublic void processVersion()
- 
processOrderingpublic void processOrdering()
- 
processDistributablepublic void processDistributable()
- 
addClassName
- 
getClassNames
- 
isDistributablepublic boolean isDistributable()
- 
isOrderedpublic boolean isOrdered()
- 
getOrdering
 
-