org.eclipse.jetty.webapp
Class MetaData
java.lang.Object
org.eclipse.jetty.webapp.MetaData
public class MetaData
- extends Object
MetaData
All data associated with the configuration and deployment of a web application.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORDERED_LIBS
public static final String ORDERED_LIBS
- See Also:
- Constant Field Values
_origins
protected Map<String,MetaData.OriginInfo> _origins
_webDefaultsRoot
protected WebDescriptor _webDefaultsRoot
_webXmlRoot
protected WebDescriptor _webXmlRoot
_webOverrideRoots
protected final List<WebDescriptor> _webOverrideRoots
_metaDataComplete
protected boolean _metaDataComplete
_annotations
protected final List<DiscoveredAnnotation> _annotations
_descriptorProcessors
protected final List<DescriptorProcessor> _descriptorProcessors
_webFragmentRoots
protected final List<FragmentDescriptor> _webFragmentRoots
_webFragmentNameMap
protected final Map<String,FragmentDescriptor> _webFragmentNameMap
_webFragmentResourceMap
protected final Map<org.eclipse.jetty.util.resource.Resource,FragmentDescriptor> _webFragmentResourceMap
_webFragmentAnnotations
protected final Map<org.eclipse.jetty.util.resource.Resource,List<DiscoveredAnnotation>> _webFragmentAnnotations
_webInfJars
protected final List<org.eclipse.jetty.util.resource.Resource> _webInfJars
_orderedWebInfJars
protected final List<org.eclipse.jetty.util.resource.Resource> _orderedWebInfJars
_orderedContainerJars
protected final List<org.eclipse.jetty.util.resource.Resource> _orderedContainerJars
_ordering
protected Ordering _ordering
allowDuplicateFragmentNames
protected boolean allowDuplicateFragmentNames
MetaData
public MetaData()
clear
public void clear()
- Empty ready for reuse
setDefaults
public void setDefaults(org.eclipse.jetty.util.resource.Resource webDefaults)
throws Exception
- Throws:
Exception
setWebXml
public void setWebXml(org.eclipse.jetty.util.resource.Resource webXml)
throws Exception
- Throws:
Exception
addOverride
public void addOverride(org.eclipse.jetty.util.resource.Resource override)
throws Exception
- Throws:
Exception
addFragment
public void addFragment(org.eclipse.jetty.util.resource.Resource jarResource,
org.eclipse.jetty.util.resource.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(org.eclipse.jetty.util.resource.Resource resource,
List<DiscoveredAnnotation> annotations)
addDescriptorProcessor
public void addDescriptorProcessor(DescriptorProcessor p)
orderFragments
public void orderFragments()
resolve
public void resolve(WebAppContext context)
throws Exception
- Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.
- Throws:
Exception
isDistributable
public boolean isDistributable()
getWebXml
public WebDescriptor getWebXml()
getOverrideWebs
public List<WebDescriptor> getOverrideWebs()
getWebDefault
public WebDescriptor getWebDefault()
getFragments
public List<FragmentDescriptor> getFragments()
getOrderedWebInfJars
public List<org.eclipse.jetty.util.resource.Resource> getOrderedWebInfJars()
getOrderedFragments
public List<FragmentDescriptor> getOrderedFragments()
getOrdering
public Ordering getOrdering()
setOrdering
public void setOrdering(Ordering o)
getFragment
public FragmentDescriptor getFragment(org.eclipse.jetty.util.resource.Resource jar)
getFragment
public FragmentDescriptor getFragment(String name)
getJarForFragment
public org.eclipse.jetty.util.resource.Resource getJarForFragment(String name)
getNamedFragments
public Map<String,FragmentDescriptor> getNamedFragments()
getOrigin
public Origin getOrigin(String name)
getOriginDescriptor
public Descriptor getOriginDescriptor(String name)
setOrigin
public void setOrigin(String name,
Descriptor d)
setOrigin
public void setOrigin(String name)
isMetaDataComplete
public boolean isMetaDataComplete()
addWebInfJar
public void addWebInfJar(org.eclipse.jetty.util.resource.Resource newResource)
getWebInfJars
public List<org.eclipse.jetty.util.resource.Resource> getWebInfJars()
getOrderedContainerJars
public List<org.eclipse.jetty.util.resource.Resource> getOrderedContainerJars()
addContainerJar
public void addContainerJar(org.eclipse.jetty.util.resource.Resource jar)
isAllowDuplicateFragmentNames
public boolean isAllowDuplicateFragmentNames()
setAllowDuplicateFragmentNames
public void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.