Package org.eclipse.jetty.ee10.webapp
Class WebDescriptor
java.lang.Object
org.eclipse.jetty.ee10.webapp.Descriptor
org.eclipse.jetty.ee10.webapp.WebDescriptor
- Direct Known Subclasses:
DefaultsDescriptor
,FragmentDescriptor
,OverrideDescriptor
Descriptor
A web descriptor (web.xml/web-defaults.xml/web-overrides.xml).
-
Field Summary
Modifier and TypeFieldDescriptionstatic XmlParser
protected boolean
protected boolean
protected int
protected MetaData.Complete
protected int
Fields inherited from class org.eclipse.jetty.ee10.webapp.Descriptor
_dtd, _root, _xml
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addClassName
(String className) int
int
static XmlParser
getParser
(boolean validating) Get a parser for parsing web descriptor content.boolean
static boolean
Check if the descriptor is metadata-complete.boolean
static XmlParser
newParser
(boolean validating) Create a new parser for parsing web descriptors.void
void
void
void
Methods inherited from class org.eclipse.jetty.ee10.webapp.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:
parse
in 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
-