Package org.eclipse.jetty.webapp
Class WebDescriptor
- java.lang.Object
-
- org.eclipse.jetty.webapp.Descriptor
-
- org.eclipse.jetty.webapp.WebDescriptor
-
- Direct Known Subclasses:
DefaultsDescriptor,FragmentDescriptor,OverrideDescriptor
public class WebDescriptor extends Descriptor
Descriptor A web descriptor (web.xml/web-defaults.xml/web-overrides.xml).
-
-
Field Summary
Fields Modifier and Type Field Description protected ArrayList<String>_classNamesprotected boolean_distributableprotected boolean_isOrderedprotected int_majorVersionprotected MetaDataComplete_metaDataCompleteprotected int_minorVersionprotected static org.eclipse.jetty.xml.XmlParser_nonValidatingStaticParserprotected List<String>_ordering-
Fields inherited from class org.eclipse.jetty.webapp.Descriptor
_dtd, _root, _validating, _xml
-
-
Constructor Summary
Constructors Constructor Description WebDescriptor(org.eclipse.jetty.util.resource.Resource xml)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassName(String className)org.eclipse.jetty.xml.XmlParserensureParser()ArrayList<String>getClassNames()intgetMajorVersion()MetaDataCompletegetMetaDataComplete()intgetMinorVersion()List<String>getOrdering()booleanisDistributable()booleanisOrdered()booleanisValidating()static org.eclipse.jetty.xml.XmlParsernewParser(boolean validating)voidparse()voidprocessOrdering()voidprocessVersion()voidsetDistributable(boolean distributable)voidsetValidating(boolean validating)-
Methods inherited from class org.eclipse.jetty.webapp.Descriptor
getResource, getRoot, toString
-
-
-
-
Field Detail
-
_nonValidatingStaticParser
protected static org.eclipse.jetty.xml.XmlParser _nonValidatingStaticParser
-
_metaDataComplete
protected MetaDataComplete _metaDataComplete
-
_majorVersion
protected int _majorVersion
-
_minorVersion
protected int _minorVersion
-
_distributable
protected boolean _distributable
-
_isOrdered
protected boolean _isOrdered
-
-
Method Detail
-
ensureParser
public org.eclipse.jetty.xml.XmlParser ensureParser() throws ClassNotFoundException- Specified by:
ensureParserin classDescriptor- Throws:
ClassNotFoundException
-
newParser
public static org.eclipse.jetty.xml.XmlParser newParser(boolean validating) throws ClassNotFoundException- Throws:
ClassNotFoundException
-
parse
public void parse() throws Exception- Overrides:
parsein classDescriptor- Throws:
Exception
-
getMetaDataComplete
public MetaDataComplete getMetaDataComplete()
-
getMajorVersion
public int getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
-
processVersion
public void processVersion()
-
processOrdering
public void processOrdering()
-
addClassName
public void addClassName(String className)
-
setDistributable
public void setDistributable(boolean distributable)
-
isDistributable
public boolean isDistributable()
-
setValidating
public void setValidating(boolean validating)
- Overrides:
setValidatingin classDescriptor
-
isValidating
public boolean isValidating()
-
isOrdered
public boolean isOrdered()
-
-