| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| public static class | MetaData.
Metadata regarding where a deployable element was declared: by annotation or by descriptor. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected final Map | |
| protected final List | |
| private final AutoLock | |
| protected boolean | |
| protected final List | |
| protected final List | |
| protected Ordering | |
| protected Map | |
| protected boolean | |
| protected WebDescriptor | |
| protected final Map | |
| protected final Map | |
| protected final List | |
| protected final List | |
| protected final List | |
| protected final List | |
| protected WebDescriptor | |
| private static final Logger | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | addDiscoveredAnnotation(DiscoveredAnnotation
the discovered annotation annotation)Add an annotation that has been discovered on a class, method or field within a resource eg a jar or dir. |
| public void | addDiscoveredAnnotations(List<DiscoveredAnnotation>
the list of discovered annotations to add annotations)Annotations such as WebServlet, WebFilter, WebListener that can be discovered by scanning unloaded classes. |
| public void | addFragmentDescriptor(Resource
the jar of the fragment jarResource, FragmentDescriptor web-fragment.xml descriptor)Add a web-fragment.xml, and the jar it is contained in. |
| public void | addOverrideDescriptor(OverrideDescriptor
the override-web.xml descriptor)Add a override-web.xml descriptor. |
| public void | |
| public void | |
| public List | |
| public WebDescriptor | |
| private Resource | Returns: the resource from the list that contains the given resource.the list of resources to check against resources, Resource the resource for which to find the parent resource resource)Check if the resource is contained within one of the list of resources. |
| public FragmentDescriptor | getFragmentDescriptor(String
the name specified in a web-fragment.xml name)Returns: the web-fragment.xml that defines that name or null |
| public FragmentDescriptor | getFragmentDescriptor(Resource
the web-fragment.xml location as a Resource descriptorResource)Returns: the FrgmentDescriptor for the web-fragment.xml, or null if none exists |
| public FragmentDescriptor | Returns: the FragmentDescriptor or null if no web-fragment.xml is associated with the jarthe jar to check for a mapping to web-fragment.xml jar)Get the web-fragment.xml related to a jar |
| public Resource | getJarForFragmentName(String
the name specified in a web-fragment.xml name)Returns: the jar that contains the web-fragment.xml with the given name or null |
| public Map | getNamedFragmentDescriptors()
Returns: a map of name to FragmentDescriptor, for those FragmentDescriptors that define a name element. |
| public Ordering | |
| public Origin | |
| public Descriptor | |
| public MetaData. | |
| public Map | |
| public List | |
| public WebDescriptor | |
| public List | |
| public List | |
| public boolean | |
| public boolean | Returns: true if the webapp is distributable, false otherwiseA webapp is distributable if web.xml is metadata-complete and distributable=true, or if metadata-complete is false, but all web-fragments.xml are distributable=true. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | resolve(WebAppContext
the context to resolve servlets / filters / listeners metadata from context)Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setValidateXml(boolean
if true xml syntax is validated by the parser, false otherwise validateXml)Set if true xml syntax is validated by the parser, false otherwise. |
| public void | |
| public void |
| _allowDuplicateFragmentNames | back to summary |
|---|---|
| protected boolean _allowDuplicateFragmentNames | |
| _annotations | back to summary |
|---|---|
| protected final Map<Resource, List<DiscoveredAnnotation>> _annotations | |
| _descriptorProcessors | back to summary |
|---|---|
| protected final List<DescriptorProcessor> _descriptorProcessors | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _metaDataComplete | back to summary |
|---|---|
| protected boolean _metaDataComplete | |
| _orderedContainerResources | back to summary |
|---|---|
| protected final List<Resource> _orderedContainerResources | |
| _orderedWebInfResources | back to summary |
|---|---|
| protected final List<Resource> _orderedWebInfResources | |
| _ordering | back to summary |
|---|---|
| protected Ordering _ordering | |
| _origins | back to summary |
|---|---|
| protected Map<String, MetaData. | |
| _validateXml | back to summary |
|---|---|
| protected boolean _validateXml | |
| _webDefaultsRoot | back to summary |
|---|---|
| protected WebDescriptor _webDefaultsRoot | |
| _webFragmentNameMap | back to summary |
|---|---|
| protected final Map<String, FragmentDescriptor> _webFragmentNameMap | |
| _webFragmentResourceMap | back to summary |
|---|---|
| protected final Map<Resource, FragmentDescriptor> _webFragmentResourceMap | |
| _webFragmentRoots | back to summary |
|---|---|
| protected final List<FragmentDescriptor> _webFragmentRoots | |
| _webInfClasses | back to summary |
|---|---|
| protected final List<Resource> _webInfClasses | |
| _webInfJars | back to summary |
|---|---|
| protected final List<Resource> _webInfJars | |
| _webOverrideRoots | back to summary |
|---|---|
| protected final List<WebDescriptor> _webOverrideRoots | |
| _webXmlRoot | back to summary |
|---|---|
| protected WebDescriptor _webXmlRoot | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ORDERED_LIBS | back to summary |
|---|---|
| public static final String ORDERED_LIBS | |
| VALIDATE_XML | back to summary |
|---|---|
| public static final String VALIDATE_XML | |
| MetaData | back to summary |
|---|---|
| public MetaData() | |
| addContainerResource | back to summary |
|---|---|
| public void addContainerResource(Resource jar) | |
| addDescriptorProcessor | back to summary |
|---|---|
| public void addDescriptorProcessor(DescriptorProcessor p) | |
| addDiscoveredAnnotation | back to summary |
|---|---|
| public void addDiscoveredAnnotation(DiscoveredAnnotation annotation) Add an annotation that has been discovered on a class, method or field within a resource eg a jar or dir. The annotation may also have no associated resource, or that resource may be a system or container resource. This method is synchronized as it is anticipated that it may be called by many threads during the annotation scanning phase.
| |
| addDiscoveredAnnotations | back to summary |
|---|---|
| public void addDiscoveredAnnotations(List<DiscoveredAnnotation> annotations) Annotations such as WebServlet, WebFilter, WebListener that can be discovered by scanning unloaded classes.
| |
| addFragmentDescriptor | back to summary |
|---|---|
| public void addFragmentDescriptor(Resource jarResource, FragmentDescriptor descriptor) throws Exception Add a web-fragment.xml, and the jar it is contained in.
| |
| addOverrideDescriptor | back to summary |
|---|---|
| public void addOverrideDescriptor(OverrideDescriptor descriptor) throws Exception Add a override-web.xml descriptor.
| |
| addWebInfResource | back to summary |
|---|---|
| public void addWebInfResource(Resource newResource) | |
| clear | back to summary |
|---|---|
| public void clear() Empty ready for reuse | |
| getContainerResources | back to summary |
|---|---|
| public List | |
| getDefaultsDescriptor | back to summary |
|---|---|
| public WebDescriptor getDefaultsDescriptor() | |
| getEnclosingResource | back to summary |
|---|---|
| private Resource getEnclosingResource(List<Resource> resources, Resource resource) Check if the resource is contained within one of the list of resources. In other words, check if the given resource is a sub-resource of one of the list of resources. | |
| getFragmentDescriptor | back to summary |
|---|---|
public FragmentDescriptor getFragmentDescriptor(String name)
| |
| getFragmentDescriptor | back to summary |
|---|---|
public FragmentDescriptor getFragmentDescriptor(Resource descriptorResource)
| |
| getFragmentDescriptorForJar | back to summary |
|---|---|
| public FragmentDescriptor getFragmentDescriptorForJar(Resource jar) Get the web-fragment.xml related to a jar
| |
| getJarForFragmentName | back to summary |
|---|---|
| public Resource getJarForFragmentName(String name) | |
| getNamedFragmentDescriptors | back to summary |
|---|---|
public Map
| |
| getOrdering | back to summary |
|---|---|
| public Ordering getOrdering() | |
| getOrigin | back to summary |
|---|---|
| public Origin getOrigin(String name) | |
| getOriginDescriptor | back to summary |
|---|---|
| public Descriptor getOriginDescriptor(String name) | |
| getOriginInfo | back to summary |
|---|---|
| public MetaData. | |
| getOrigins | back to summary |
|---|---|
| public Map | |
| getOverrideDescriptors | back to summary |
|---|---|
| public List | |
| getWebDescriptor | back to summary |
|---|---|
| public WebDescriptor getWebDescriptor() | |
| getWebInfClassesResources | back to summary |
|---|---|
| public List | |
| getWebInfResources | back to summary |
|---|---|
| public List | |
| isAllowDuplicateFragmentNames | back to summary |
|---|---|
| public boolean isAllowDuplicateFragmentNames() | |
| isDistributable | back to summary |
|---|---|
| public boolean isDistributable() A webapp is distributable if web.xml is metadata-complete and distributable=true, or if metadata-complete is false, but all web-fragments.xml are distributable=true.
| |
| isMetaDataComplete | back to summary |
|---|---|
| public boolean isMetaDataComplete() | |
| isOrdered | back to summary |
|---|---|
| public boolean isOrdered() | |
| isValidateXml | back to summary |
|---|---|
public boolean isValidateXml()
| |
| orderFragments | back to summary |
|---|---|
| public void orderFragments() | |
| removeDescriptorProcessor | back to summary |
|---|---|
| public void removeDescriptorProcessor(DescriptorProcessor p) | |
| resolve | back to summary |
|---|---|
| public void resolve(WebAppContext context) throws Exception Resolve all servlet/filter/listener metadata from all sources: descriptors and annotations.
| |
| setAllowDuplicateFragmentNames | back to summary |
|---|---|
| public void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames) | |
| setDefaultsDescriptor | back to summary |
|---|---|
| public void setDefaultsDescriptor(DefaultsDescriptor descriptor) throws Exception Set the web-default.xml.
| |
| setOrdering | back to summary |
|---|---|
| public void setOrdering(Ordering o) | |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(String name, Descriptor d) | |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(String name, Annotation annotation, Class<?> annotated) | |
| setOriginAPI | back to summary |
|---|---|
| public void setOriginAPI(String name) | |
| setValidateXml | back to summary |
|---|---|
| public void setValidateXml(boolean validateXml) Set if true xml syntax is validated by the parser, false otherwise.
| |
| setWebDescriptor | back to summary |
|---|---|
| public void setWebDescriptor(WebDescriptor descriptor) throws Exception Set the web.xml descriptor.
| |
| setWebInfClassesResources | back to summary |
|---|---|
| public void setWebInfClassesResources(List<Resource> dirs) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final MetaData. | |
| public static final MetaData. | |
| public static final MetaData. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MetaData. | |
| public static MetaData. |
| False | back to summary |
|---|---|
| public static final MetaData. | |
| NotSet | back to summary |
|---|---|
| public static final MetaData. | |
| True | back to summary |
|---|---|
| public static final MetaData. | |
| Complete | back to summary |
|---|---|
| private Complete() | |
| valueOf | back to summary |
|---|---|
| public static MetaData. | |
| values | back to summary |
|---|---|
| public static MetaData. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | annotated
The class containing the annotation, if declared by one |
| private final Annotation | annotation
Reference to the annotation, if declared by one |
| private final Descriptor | descriptor
Reference to the descriptor, if declared in one |
| private final String | name
Identifier for the deployable element |
| private final Origin | origin
Origin of the deployable element |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Descriptor | |
| public String | |
| public Origin | |
| public String |
| annotated | back to summary |
|---|---|
| private final Class<?> annotated The class containing the annotation, if declared by one | |
| annotation | back to summary |
|---|---|
| private final Annotation annotation Reference to the annotation, if declared by one | |
| descriptor | back to summary |
|---|---|
| private final Descriptor descriptor Reference to the descriptor, if declared in one | |
| name | back to summary |
|---|---|
| private final String name Identifier for the deployable element | |
| origin | back to summary |
|---|---|
| private final Origin origin Origin of the deployable element | |
| OriginInfo | back to summary |
|---|---|
| public OriginInfo(String n, Annotation a, Class<?> ac) | |
| OriginInfo | back to summary |
|---|---|
| public OriginInfo(String n, Descriptor d) | |
| OriginInfo | back to summary |
|---|---|
| public OriginInfo(String n) | |
| getDescriptor | back to summary |
|---|---|
| public Descriptor getDescriptor() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getOriginType | back to summary |
|---|---|
| public Origin getOriginType() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |