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 java.util.ArrayList<java.lang.String>
_classNames
protected boolean
_distributable
protected boolean
_isOrdered
protected int
_majorVersion
protected MetaDataComplete
_metaDataComplete
protected int
_minorVersion
protected static XmlParser
_nonValidatingStaticParser
protected java.util.List<java.lang.String>
_ordering
-
Fields inherited from class org.eclipse.jetty.webapp.Descriptor
_dtd, _root, _validating, _xml
-
-
Constructor Summary
Constructors Constructor Description WebDescriptor(Resource xml)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassName(java.lang.String className)
XmlParser
ensureParser()
java.util.ArrayList<java.lang.String>
getClassNames()
int
getMajorVersion()
MetaDataComplete
getMetaDataComplete()
int
getMinorVersion()
java.util.List<java.lang.String>
getOrdering()
boolean
isDistributable()
boolean
isOrdered()
boolean
isValidating()
static XmlParser
newParser(boolean validating)
void
parse()
void
processOrdering()
void
processVersion()
void
setDistributable(boolean distributable)
void
setValidating(boolean validating)
-
Methods inherited from class org.eclipse.jetty.webapp.Descriptor
getResource, getRoot, toString
-
-
-
-
Field Detail
-
_nonValidatingStaticParser
protected static XmlParser _nonValidatingStaticParser
-
_metaDataComplete
protected MetaDataComplete _metaDataComplete
-
_majorVersion
protected int _majorVersion
-
_minorVersion
protected int _minorVersion
-
_classNames
protected java.util.ArrayList<java.lang.String> _classNames
-
_distributable
protected boolean _distributable
-
_isOrdered
protected boolean _isOrdered
-
_ordering
protected java.util.List<java.lang.String> _ordering
-
-
Constructor Detail
-
WebDescriptor
public WebDescriptor(Resource xml)
-
-
Method Detail
-
ensureParser
public XmlParser ensureParser() throws java.lang.ClassNotFoundException
- Specified by:
ensureParser
in classDescriptor
- Throws:
java.lang.ClassNotFoundException
-
newParser
public static XmlParser newParser(boolean validating) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
parse
public void parse() throws java.lang.Exception
- Overrides:
parse
in classDescriptor
- Throws:
java.lang.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(java.lang.String className)
-
getClassNames
public java.util.ArrayList<java.lang.String> getClassNames()
-
setDistributable
public void setDistributable(boolean distributable)
-
isDistributable
public boolean isDistributable()
-
setValidating
public void setValidating(boolean validating)
- Overrides:
setValidating
in classDescriptor
-
isValidating
public boolean isValidating()
-
isOrdered
public boolean isOrdered()
-
getOrdering
public java.util.List<java.lang.String> getOrdering()
-
-