Class WebDescriptor
java.lang.Object
org.eclipse.jetty.ee8.webapp.Descriptor
org.eclipse.jetty.ee8.webapp.WebDescriptor
- Direct Known Subclasses:
 DefaultsDescriptor, FragmentDescriptor, OverrideDescriptor
A web descriptor (web.xml/web-defaults.xml/web-overrides.xml).
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic XmlParserprotected booleanprotected booleanprotected intprotected MetaData.Completeprotected intFields inherited from class Descriptor
_dtd, _root, _xml - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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 Descriptor
getResource, getRoot, getURI, toString 
- 
Field Details
- 
__nonValidatingStaticParser
 - 
_metaDataComplete
 - 
_majorVersion
protected int _majorVersion - 
_minorVersion
protected int _minorVersion - 
_classNames
 - 
_distributable
protected boolean _distributable - 
_isOrdered
protected boolean _isOrdered - 
_ordering
 
 - 
 - 
Constructor Details
- 
WebDescriptor
 
 - 
 - 
Method Details
- 
isMetaDataComplete
Check 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
 
 - 
getParser
Get a parser for parsing web descriptor content.- Parameters:
 validating- true if the parser should validate syntax, false otherwise- Returns:
 - an XmlParser for web descriptors
 
 - 
newParser
Create a new parser for parsing web descriptors.- Parameters:
 validating- if true, the parser will validate syntax- Returns:
 - an XmlParser
 
 - 
parse
- Overrides:
 parsein classDescriptor- Throws:
 Exception
 - 
getMetaDataComplete
 - 
getMajorVersion
public int getMajorVersion() - 
getMinorVersion
public int getMinorVersion() - 
processVersion
public void processVersion() - 
processOrdering
public void processOrdering() - 
processDistributable
public void processDistributable() - 
addClassName
 - 
getClassNames
 - 
isDistributable
public boolean isDistributable() - 
isOrdered
public boolean isOrdered() - 
getOrdering
 
 -