Package org.eclipse.jetty.webapp
Class MetaData
- java.lang.Object
-
- org.eclipse.jetty.webapp.MetaData
-
@Deprecated(since="2021-05-27") public class MetaData extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.MetaData All data associated with the configuration and deployment of a web application.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetaData.OriginInfo
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static Resource
NON_FRAG_RESOURCE
Deprecated.static java.lang.String
ORDERED_LIBS
Deprecated.static java.lang.String
VALIDATE_XML
Deprecated.
-
Constructor Summary
Constructors Constructor Description MetaData()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addContainerResource(Resource jar)
Deprecated.void
addDescriptorProcessor(DescriptorProcessor p)
Deprecated.void
addDiscoveredAnnotation(DiscoveredAnnotation annotation)
Deprecated.Add an annotation that has been discovered on a class, method or field within a resource eg a jar or dir.void
addDiscoveredAnnotations(java.util.List<DiscoveredAnnotation> annotations)
Deprecated.Annotations not associated with a WEB-INF/lib fragment jar.void
addFragment(Resource jarResource, Resource xmlResource)
Deprecated.Add a web-fragment.xmlvoid
addOverride(Resource override)
Deprecated.void
addWebInfJar(Resource newResource)
Deprecated.void
clear()
Deprecated.Empty ready for reusejava.util.List<Resource>
getContainerResources()
Deprecated.FragmentDescriptor
getFragment(java.lang.String name)
Deprecated.FragmentDescriptor
getFragment(Resource jar)
Deprecated.java.util.List<FragmentDescriptor>
getFragments()
Deprecated.Resource
getJarForFragment(java.lang.String name)
Deprecated.java.util.Map<java.lang.String,FragmentDescriptor>
getNamedFragments()
Deprecated.java.util.List<FragmentDescriptor>
getOrderedFragments()
Deprecated.java.util.List<Resource>
getOrderedWebInfJars()
Deprecated.Ordering
getOrdering()
Deprecated.Origin
getOrigin(java.lang.String name)
Deprecated.Descriptor
getOriginDescriptor(java.lang.String name)
Deprecated.MetaData.OriginInfo
getOriginInfo(java.lang.String name)
Deprecated.java.util.Map<java.lang.String,MetaData.OriginInfo>
getOrigins()
Deprecated.java.util.List<WebDescriptor>
getOverrideWebs()
Deprecated.WebDescriptor
getWebDefault()
Deprecated.java.util.List<Resource>
getWebInfClassesDirs()
Deprecated.java.util.List<Resource>
getWebInfJars()
Deprecated.WebDescriptor
getWebXml()
Deprecated.boolean
isAllowDuplicateFragmentNames()
Deprecated.boolean
isDistributable()
Deprecated.boolean
isMetaDataComplete()
Deprecated.boolean
isValidateXml()
Deprecated.void
orderFragments()
Deprecated.void
removeDescriptorProcessor(DescriptorProcessor p)
Deprecated.void
resolve(WebAppContext context)
Deprecated.Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.void
setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)
Deprecated.void
setDefaults(Resource webDefaults)
Deprecated.void
setOrdering(Ordering o)
Deprecated.void
setOrigin(java.lang.String name, java.lang.annotation.Annotation annotation, java.lang.Class<?> annotated)
Deprecated.void
setOrigin(java.lang.String name, Descriptor d)
Deprecated.void
setOriginAPI(java.lang.String name)
Deprecated.void
setValidateXml(boolean validateXml)
Deprecated.void
setWebInfClassesDirs(java.util.List<Resource> dirs)
Deprecated.void
setWebXml(Resource webXml)
Deprecated.
-
-
-
Field Detail
-
VALIDATE_XML
public static final java.lang.String VALIDATE_XML
Deprecated.- See Also:
- Constant Field Values
-
ORDERED_LIBS
public static final java.lang.String ORDERED_LIBS
Deprecated.- See Also:
- Constant Field Values
-
NON_FRAG_RESOURCE
public static final Resource NON_FRAG_RESOURCE
Deprecated.
-
-
Method Detail
-
clear
public void clear()
Deprecated.Empty ready for reuse
-
setDefaults
public void setDefaults(Resource webDefaults) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
setWebXml
public void setWebXml(Resource webXml) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
addOverride
public void addOverride(Resource override) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
-
addFragment
public void addFragment(Resource jarResource, Resource xmlResource) throws java.lang.Exception
Deprecated.Add a web-fragment.xml- Parameters:
jarResource
- the jar the fragment is contained inxmlResource
- the resource representing the xml file- Throws:
java.lang.Exception
- if unable to add fragment
-
addDiscoveredAnnotations
public void addDiscoveredAnnotations(java.util.List<DiscoveredAnnotation> annotations)
Deprecated.Annotations not associated with a WEB-INF/lib fragment jar. These are from WEB-INF/classes or the ??container path??- Parameters:
annotations
- the list of discovered annotations to add
-
addDiscoveredAnnotation
public void addDiscoveredAnnotation(DiscoveredAnnotation annotation)
Deprecated.Add an annotation that has been discovered on a class, method or field within a resource eg a jar or dir. This method is synchronized as it is anticipated that it may be called by many threads during the annotation scanning phase.- Parameters:
annotation
- the discovered annotation
-
addDescriptorProcessor
public void addDescriptorProcessor(DescriptorProcessor p)
Deprecated.
-
removeDescriptorProcessor
public void removeDescriptorProcessor(DescriptorProcessor p)
Deprecated.
-
orderFragments
public void orderFragments()
Deprecated.
-
resolve
public void resolve(WebAppContext context) throws java.lang.Exception
Deprecated.Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.- Parameters:
context
- the context to resolve servlets / filters / listeners metadata from- Throws:
java.lang.Exception
- if unable to resolve metadata
-
isDistributable
public boolean isDistributable()
Deprecated.
-
getWebXml
public WebDescriptor getWebXml()
Deprecated.
-
getOverrideWebs
public java.util.List<WebDescriptor> getOverrideWebs()
Deprecated.
-
getWebDefault
public WebDescriptor getWebDefault()
Deprecated.
-
getFragments
public java.util.List<FragmentDescriptor> getFragments()
Deprecated.
-
getOrderedWebInfJars
public java.util.List<Resource> getOrderedWebInfJars()
Deprecated.
-
getOrderedFragments
public java.util.List<FragmentDescriptor> getOrderedFragments()
Deprecated.
-
getOrdering
public Ordering getOrdering()
Deprecated.
-
setOrdering
public void setOrdering(Ordering o)
Deprecated.
-
getFragment
public FragmentDescriptor getFragment(Resource jar)
Deprecated.
-
getFragment
public FragmentDescriptor getFragment(java.lang.String name)
Deprecated.
-
getJarForFragment
public Resource getJarForFragment(java.lang.String name)
Deprecated.
-
getNamedFragments
public java.util.Map<java.lang.String,FragmentDescriptor> getNamedFragments()
Deprecated.
-
getOrigin
public Origin getOrigin(java.lang.String name)
Deprecated.
-
getOriginInfo
public MetaData.OriginInfo getOriginInfo(java.lang.String name)
Deprecated.
-
getOriginDescriptor
public Descriptor getOriginDescriptor(java.lang.String name)
Deprecated.
-
setOrigin
public void setOrigin(java.lang.String name, Descriptor d)
Deprecated.
-
setOrigin
public void setOrigin(java.lang.String name, java.lang.annotation.Annotation annotation, java.lang.Class<?> annotated)
Deprecated.
-
setOriginAPI
public void setOriginAPI(java.lang.String name)
Deprecated.
-
isMetaDataComplete
public boolean isMetaDataComplete()
Deprecated.
-
addWebInfJar
public void addWebInfJar(Resource newResource)
Deprecated.
-
getWebInfJars
public java.util.List<Resource> getWebInfJars()
Deprecated.
-
getContainerResources
public java.util.List<Resource> getContainerResources()
Deprecated.
-
addContainerResource
public void addContainerResource(Resource jar)
Deprecated.
-
setWebInfClassesDirs
public void setWebInfClassesDirs(java.util.List<Resource> dirs)
Deprecated.
-
getWebInfClassesDirs
public java.util.List<Resource> getWebInfClassesDirs()
Deprecated.
-
isAllowDuplicateFragmentNames
public boolean isAllowDuplicateFragmentNames()
Deprecated.
-
setAllowDuplicateFragmentNames
public void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)
Deprecated.
-
isValidateXml
public boolean isValidateXml()
Deprecated.- Returns:
- the validateXml
-
setValidateXml
public void setValidateXml(boolean validateXml)
Deprecated.- Parameters:
validateXml
- the validateXml to set
-
getOrigins
public java.util.Map<java.lang.String,MetaData.OriginInfo> getOrigins()
Deprecated.
-
-