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.Dynamic

    Nested classes/interfaces inherited from interface jakarta.servlet.ServletRegistration

    jakarta.servlet.ServletRegistration.Dynamic
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setWrappingServletContext(jakarta.servlet.ServletContext wrapped, jakarta.servlet.ServletContext wrapper)
    Set the designated wrapping servlet context if this Dynamic contains the designated wrapped servlet context.

    Methods inherited from interface jakarta.servlet.Registration

    getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters

    Methods inherited from interface jakarta.servlet.Registration.Dynamic

    setAsyncSupported

    Methods inherited from interface jakarta.servlet.ServletRegistration

    addMapping, getMappings, getRunAsRole

    Methods 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 this Dynamic contains the designated wrapped servlet context.
      Parameters:
      wrapped - The wrapped servlet context this Dynamic may contain.
      wrapper - The wrapping servlet context to replace the servlet context within this Dynamic.