Package org.eclipse.jetty.webapp
Class MetaData
- java.lang.Object
-
- org.eclipse.jetty.webapp.MetaData
-
@Deprecated(since="2021-05-27") public class MetaData extends 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 classMetaData.OriginInfoDeprecated.
-
Field Summary
Fields Modifier and Type Field Description static ResourceNON_FRAG_RESOURCEDeprecated.static StringORDERED_LIBSDeprecated.static StringVALIDATE_XMLDeprecated.
-
Constructor Summary
Constructors Constructor Description MetaData()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddContainerResource(Resource jar)Deprecated.voidaddDescriptorProcessor(DescriptorProcessor p)Deprecated.voidaddDiscoveredAnnotation(DiscoveredAnnotation annotation)Deprecated.Add an annotation that has been discovered on a class, method or field within a resource eg a jar or dir.voidaddDiscoveredAnnotations(List<DiscoveredAnnotation> annotations)Deprecated.Annotations not associated with a WEB-INF/lib fragment jar.voidaddFragment(Resource jarResource, Resource xmlResource)Deprecated.Add a web-fragment.xmlvoidaddOverride(Resource override)Deprecated.voidaddWebInfJar(Resource newResource)Deprecated.voidclear()Deprecated.Empty ready for reuseList<Resource>getContainerResources()Deprecated.FragmentDescriptorgetFragment(String name)Deprecated.FragmentDescriptorgetFragment(Resource jar)Deprecated.List<FragmentDescriptor>getFragments()Deprecated.ResourcegetJarForFragment(String name)Deprecated.Map<String,FragmentDescriptor>getNamedFragments()Deprecated.List<FragmentDescriptor>getOrderedFragments()Deprecated.List<Resource>getOrderedWebInfJars()Deprecated.OrderinggetOrdering()Deprecated.OrigingetOrigin(String name)Deprecated.DescriptorgetOriginDescriptor(String name)Deprecated.MetaData.OriginInfogetOriginInfo(String name)Deprecated.Map<String,MetaData.OriginInfo>getOrigins()Deprecated.List<WebDescriptor>getOverrideWebs()Deprecated.WebDescriptorgetWebDefault()Deprecated.List<Resource>getWebInfClassesDirs()Deprecated.List<Resource>getWebInfJars()Deprecated.WebDescriptorgetWebXml()Deprecated.booleanisAllowDuplicateFragmentNames()Deprecated.booleanisDistributable()Deprecated.booleanisMetaDataComplete()Deprecated.booleanisValidateXml()Deprecated.voidorderFragments()Deprecated.voidremoveDescriptorProcessor(DescriptorProcessor p)Deprecated.voidresolve(WebAppContext context)Deprecated.Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.voidsetAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)Deprecated.voidsetDefaults(Resource webDefaults)Deprecated.voidsetOrdering(Ordering o)Deprecated.voidsetOrigin(String name, Annotation annotation, Class<?> annotated)Deprecated.voidsetOrigin(String name, Descriptor d)Deprecated.voidsetOriginAPI(String name)Deprecated.voidsetValidateXml(boolean validateXml)Deprecated.voidsetWebInfClassesDirs(List<Resource> dirs)Deprecated.voidsetWebXml(Resource webXml)Deprecated.
-
-
-
Field Detail
-
VALIDATE_XML
public static final String VALIDATE_XML
Deprecated.- See Also:
- Constant Field Values
-
ORDERED_LIBS
public static final 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 Exception
Deprecated.- Throws:
Exception
-
addOverride
public void addOverride(Resource override) throws Exception
Deprecated.- Throws:
Exception
-
addFragment
public void addFragment(Resource jarResource, Resource xmlResource) throws Exception
Deprecated.Add a web-fragment.xml- Parameters:
jarResource- the jar the fragment is contained inxmlResource- the resource representing the xml file- Throws:
Exception- if unable to add fragment
-
addDiscoveredAnnotations
public void addDiscoveredAnnotations(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 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:
Exception- if unable to resolve metadata
-
isDistributable
public boolean isDistributable()
Deprecated.
-
getWebXml
public WebDescriptor getWebXml()
Deprecated.
-
getOverrideWebs
public List<WebDescriptor> getOverrideWebs()
Deprecated.
-
getWebDefault
public WebDescriptor getWebDefault()
Deprecated.
-
getFragments
public List<FragmentDescriptor> getFragments()
Deprecated.
-
getOrderedFragments
public 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(String name)
Deprecated.
-
getNamedFragments
public Map<String,FragmentDescriptor> getNamedFragments()
Deprecated.
-
getOriginInfo
public MetaData.OriginInfo getOriginInfo(String name)
Deprecated.
-
getOriginDescriptor
public Descriptor getOriginDescriptor(String name)
Deprecated.
-
setOrigin
public void setOrigin(String name, Descriptor d)
Deprecated.
-
setOrigin
public void setOrigin(String name, Annotation annotation, Class<?> annotated)
Deprecated.
-
setOriginAPI
public void setOriginAPI(String name)
Deprecated.
-
isMetaDataComplete
public boolean isMetaDataComplete()
Deprecated.
-
addWebInfJar
public void addWebInfJar(Resource newResource)
Deprecated.
-
addContainerResource
public void addContainerResource(Resource jar)
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 Map<String,MetaData.OriginInfo> getOrigins()
Deprecated.
-
-