Class QuickStartDescriptorProcessor
java.lang.Object
org.eclipse.jetty.ee10.webapp.IterativeDescriptorProcessor
org.eclipse.jetty.ee10.quickstart.QuickStartDescriptorProcessor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,DescriptorProcessor
public class QuickStartDescriptorProcessor
extends IterativeDescriptorProcessor
implements Closeable
QuickStartDescriptorProcessor
Handle extended elements for quickstart-web.xml
-
Field Summary
Fields inherited from class org.eclipse.jetty.ee10.webapp.IterativeDescriptorProcessor
__signature, _visitors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
end
(WebAppContext context, Descriptor descriptor) void
start
(WebAppContext context, Descriptor descriptor) void
visitContextParam
(WebAppContext context, Descriptor descriptor, XmlParser.Node node) Process a context-param elementvoid
visitMetaInfResource
(WebAppContext context, Resource dir) void
visitServletContainerInitializerHolder
(WebAppContext context, ServletContainerInitializerHolder sciHolder) Ensure the ServletContainerInitializerHolder will be started by adding it to the context.void
visitServletMapping
(WebAppContext context, Descriptor descriptor, XmlParser.Node node) Process a servlet-mapping elementMethods inherited from class org.eclipse.jetty.ee10.webapp.IterativeDescriptorProcessor
process, registerVisitor, visit
-
Constructor Details
-
QuickStartDescriptorProcessor
public QuickStartDescriptorProcessor()
-
-
Method Details
-
start
- Specified by:
start
in classIterativeDescriptorProcessor
-
end
- Specified by:
end
in classIterativeDescriptorProcessor
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
visitServletMapping
Process a servlet-mapping element- Parameters:
context
- the webappdescriptor
- the xml file to processnode
- the servlet-mapping element in the xml file to process
-
visitContextParam
public void visitContextParam(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws Exception Process a context-param element- Parameters:
context
- the webappdescriptor
- the xml file to processnode
- the context-param node in the xml file- Throws:
Exception
- if some resources cannot be read
-
visitServletContainerInitializerHolder
public void visitServletContainerInitializerHolder(WebAppContext context, ServletContainerInitializerHolder sciHolder) Ensure the ServletContainerInitializerHolder will be started by adding it to the context.- Parameters:
context
- the context to which to add the ServletContainerInitializerHoldersciHolder
- the ServletContainerInitializerHolder
-
visitMetaInfResource
-