org.eclipse.jetty.webapp
Class MetaData
java.lang.Object
org.eclipse.jetty.webapp.MetaData
public class MetaData
- extends Object
MetaData
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METADATA
public static final String METADATA
- See Also:
- Constant Field Values
METADATA_COMPLETE
public static final String METADATA_COMPLETE
- See Also:
- Constant Field Values
WEBXML_MAJOR_VERSION
public static final String WEBXML_MAJOR_VERSION
- See Also:
- Constant Field Values
WEBXML_MINOR_VERSION
public static final String WEBXML_MINOR_VERSION
- See Also:
- Constant Field Values
WEBXML_CLASSNAMES
public static final String WEBXML_CLASSNAMES
- See Also:
- Constant Field Values
_context
protected WebAppContext _context
_origins
protected Map<String,MetaData.OriginInfo> _origins
_webDefaultsRoot
protected Descriptor _webDefaultsRoot
_webXmlRoot
protected Descriptor _webXmlRoot
_webOverrideRoot
protected Descriptor _webOverrideRoot
_annotations
protected List<DiscoveredAnnotation> _annotations
_descriptorProcessors
protected List<DescriptorProcessor> _descriptorProcessors
_webFragmentRoots
protected List<FragmentDescriptor> _webFragmentRoots
_webFragmentNameMap
protected Map<String,FragmentDescriptor> _webFragmentNameMap
_webFragmentResourceMap
protected Map<Resource,FragmentDescriptor> _webFragmentResourceMap
_webFragmentAnnotations
protected Map<Resource,List<DiscoveredAnnotation>> _webFragmentAnnotations
_orderedResources
protected List<Resource> _orderedResources
_ordering
protected MetaData.Ordering _ordering
_standardDescriptorProcessor
protected StandardDescriptorProcessor _standardDescriptorProcessor
MetaData
public MetaData(WebAppContext context)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getContext
public WebAppContext getContext()
setDefaults
public void setDefaults(Resource webDefaults)
throws Exception
- Throws:
Exception
setWebXml
public void setWebXml(Resource webXml)
throws Exception
- Throws:
Exception
setOverride
public void setOverride(Resource override)
throws Exception
- Throws:
Exception
addFragment
public void addFragment(Resource jarResource,
Resource xmlResource)
throws Exception
- Add a web-fragment.xml
- Parameters:
jarResource
- the jar the fragment is contained inxmlResource
- the resource representing the xml file
- Throws:
Exception
addDiscoveredAnnotations
public void addDiscoveredAnnotations(List<DiscoveredAnnotation> annotations)
- Annotations not associated with a WEB-INF/lib fragment jar.
These are from WEB-INF/classes or the ??container path??
- Parameters:
annotations
-
addDiscoveredAnnotations
public void addDiscoveredAnnotations(Resource resource,
List<DiscoveredAnnotation> annotations)
addDescriptorProcessor
public void addDescriptorProcessor(DescriptorProcessor p)
orderFragments
public void orderFragments()
resolve
public void resolve()
throws Exception
- Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.
- Throws:
Exception
isDistributable
public boolean isDistributable()
getWebXml
public Descriptor getWebXml()
getOverrideWeb
public Descriptor getOverrideWeb()
getWebDefault
public Descriptor getWebDefault()
getFragments
public List<FragmentDescriptor> getFragments()
getOrderedResources
public List<Resource> getOrderedResources()
getOrderedFragments
public List<FragmentDescriptor> getOrderedFragments()
getOrdering
public MetaData.Ordering getOrdering()
setOrdering
public void setOrdering(MetaData.Ordering o)
getFragment
public FragmentDescriptor getFragment(Resource jar)
getFragment
public FragmentDescriptor getFragment(String name)
getJarForFragment
public Resource getJarForFragment(String name)
getNamedFragments
public Map<String,FragmentDescriptor> getNamedFragments()
getOrigin
public MetaData.Origin getOrigin(String name)
getOriginDescriptor
public Descriptor getOriginDescriptor(String name)
setOrigin
public void setOrigin(String name,
Descriptor d)
setOrigin
public void setOrigin(String name)
Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.