Class DeferredServletConfig
java.lang.Object
de.aristaflow.adept2.base.servletcontainer.demux.DeferredServletConfig
- All Implemented Interfaces:
jakarta.servlet.ServletConfig
A servlet config for a servlet which is deployed after the main servlet already has been deployed
- and of which the context may have already been initialised. This configuration provides the
(deferred) servlet context, the name of the servlet as well as the init parameters. The init
parameters will reflect the values of the init parameters of the corresponding (deferred) servlet
context at the time the servlet has been added to the servlet context as well as the init
parameters added via
Registration.-
Field Summary
FieldsModifier and TypeFieldDescriptionThe init parameters of the servlet containing the values of the multiplexing servlet context from the time the servlet has been added to the servlet context as well as the init parameters changed viaRegistrationat the time the constructor of this servlet config has been called.protected final jakarta.servlet.ServletContextThe servlet context, i.protected final StringThe name of the servlet. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeferredServletConfig(String servletName, jakarta.servlet.ServletContext servletContext, Map<String, String> initParams) Creates a new servlet config for a servlet that is deferred. -
Method Summary
-
Field Details
-
servletName
The name of the servlet. -
servletContext
protected final jakarta.servlet.ServletContext servletContextThe servlet context, i. e. the multiplexing servlet context for the (deferred) servlet. -
initParams
The init parameters of the servlet containing the values of the multiplexing servlet context from the time the servlet has been added to the servlet context as well as the init parameters changed viaRegistrationat the time the constructor of this servlet config has been called.
-
-
Constructor Details
-
DeferredServletConfig
protected DeferredServletConfig(String servletName, jakarta.servlet.ServletContext servletContext, Map<String, String> initParams) Creates a new servlet config for a servlet that is deferred. When calling the constructor, the init parameter values will be taken over (and not change any more) from the servlet context and theRegistration.- Parameters:
servletName- The name of the servlet.servletContext- The servlet context, i. e. the multiplexing servlet context for the (deferred) servlet.initParams- The init parameters of the servlet containing the values of the multiplexing servlet context from the time the servlet has been added to the servlet context as well as the init parameters changed viaRegistration.
-
-
Method Details
-
getServletName
- Specified by:
getServletNamein interfacejakarta.servlet.ServletConfig
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Specified by:
getServletContextin interfacejakarta.servlet.ServletConfig
-
getInitParameter
- Specified by:
getInitParameterin interfacejakarta.servlet.ServletConfig
-
getInitParameterNames
- Specified by:
getInitParameterNamesin interfacejakarta.servlet.ServletConfig
-