Interface WrapSupportingDynamic
- All Superinterfaces:
jakarta.servlet.Registration,jakarta.servlet.Registration.Dynamic,jakarta.servlet.ServletRegistration,jakarta.servlet.ServletRegistration.Dynamic
- All Known Implementing Classes:
DeferredDynamic
public interface WrapSupportingDynamic
extends jakarta.servlet.ServletRegistration.Dynamic
This
Dynamic allows to set the servlet context to allow for wrapping servlet
contexts when adding servlets. Wrapping
servlet contexts need to exchange the servlet context within the Dynamic since the
set servlet context does not know about the wrapping.-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.servlet.Registration
jakarta.servlet.Registration.DynamicNested classes/interfaces inherited from interface jakarta.servlet.ServletRegistration
jakarta.servlet.ServletRegistration.Dynamic -
Method Summary
Modifier and TypeMethodDescriptionvoidsetWrappingServletContext(jakarta.servlet.ServletContext wrapped, jakarta.servlet.ServletContext wrapper) Set the designated wrapping servlet context if thisDynamiccontains the designatedwrappedservlet context.Methods inherited from interface jakarta.servlet.Registration
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParametersMethods inherited from interface jakarta.servlet.Registration.Dynamic
setAsyncSupportedMethods inherited from interface jakarta.servlet.ServletRegistration
addMapping, getMappings, getRunAsRoleMethods inherited from interface jakarta.servlet.ServletRegistration.Dynamic
setLoadOnStartup, setMultipartConfig, setRunAsRole, setServletSecurity
-
Method Details
-
setWrappingServletContext
void setWrappingServletContext(jakarta.servlet.ServletContext wrapped, jakarta.servlet.ServletContext wrapper) Set the designated wrapping servlet context if thisDynamiccontains the designatedwrappedservlet context.- Parameters:
wrapped- The wrapped servlet context thisDynamicmay contain.wrapper- The wrapping servlet context to replace the servlet context within thisDynamic.
-